Vim Bullets

More changes to `formatoptions` and installed vim-bullets to try to solve
my markdown bullet formatting issues.
This commit is contained in:
2024-03-07 06:37:30 -05:00
parent 2a420ecb04
commit 8b5d5e7fd5

14
.vimrc
View File

@@ -138,6 +138,11 @@ Plug 'preservim/vim-markdown'
" https://github.com/micarmst/vim-spellsync
Plug 'micarmst/vim-spellsync'
" Vim Bullets
" I tried for too long to get Martkdown bullet to work right.
" https://github.com/bullets-vim/bullets.vim
Plug 'bullets-vim/bullets.vim'
call plug#end()
" ---------------------------------------------------------------------------------------------------------------------
@@ -153,6 +158,9 @@ set conceallevel=0
let g:vim_markdown_strikethrough = 1
" = follow anchors - allow <ge> to follow anchors just like links
let g:vim_markdown_follow_anchor = 1
" bullets-vim
let g:bullets_enabled_file_types = [ 'markdown', 'gitcommit' ]
" = multi-line bullets in markdown
" = [Reference](https://vimdoc.sourceforge.net/htmldoc/change.html#fo-table)
" j - remove a comment leader when joining lines.
@@ -164,8 +172,10 @@ let g:vim_markdown_follow_anchor = 1
" t - autowrap lines using text width value
"autocmd FileType markdown setlocal formatoptions=aclnrot
" The below was found here: https://github.com/preservim/vim-markdown/issues/232#issuecomment-246173676
autocmd FileType markdown set formatoptions-=q
autocmd FileType markdown set formatlistpat=^\\s*\\d\\+\\.\\s\\+\\\|^\\s*\[-*+]\\s\\+
"autocmd FileType markdown set formatoptions-=q
"autocmd FileType markdown set formatoptions=jqr
"autocmd FileType markdown set formatlistpat=^\\s*\\d\\+\\.\\s\\+\\\|^\\s*\[-*+]\\s\\+
"autocmd FileType markdown set comments=b:>
" = Open folds by default
au BufWinEnter * normal zR