Vim Bullets
More changes to `formatoptions` and installed vim-bullets to try to solve my markdown bullet formatting issues.
This commit is contained in:
14
.vimrc
14
.vimrc
@@ -138,6 +138,11 @@ Plug 'preservim/vim-markdown'
|
|||||||
" https://github.com/micarmst/vim-spellsync
|
" https://github.com/micarmst/vim-spellsync
|
||||||
Plug '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()
|
call plug#end()
|
||||||
|
|
||||||
" ---------------------------------------------------------------------------------------------------------------------
|
" ---------------------------------------------------------------------------------------------------------------------
|
||||||
@@ -153,6 +158,9 @@ set conceallevel=0
|
|||||||
let g:vim_markdown_strikethrough = 1
|
let g:vim_markdown_strikethrough = 1
|
||||||
" = follow anchors - allow <ge> to follow anchors just like links
|
" = follow anchors - allow <ge> to follow anchors just like links
|
||||||
let g:vim_markdown_follow_anchor = 1
|
let g:vim_markdown_follow_anchor = 1
|
||||||
|
|
||||||
|
" bullets-vim
|
||||||
|
let g:bullets_enabled_file_types = [ 'markdown', 'gitcommit' ]
|
||||||
" = multi-line bullets in markdown
|
" = multi-line bullets in markdown
|
||||||
" = [Reference](https://vimdoc.sourceforge.net/htmldoc/change.html#fo-table)
|
" = [Reference](https://vimdoc.sourceforge.net/htmldoc/change.html#fo-table)
|
||||||
" j - remove a comment leader when joining lines.
|
" 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
|
" t - autowrap lines using text width value
|
||||||
"autocmd FileType markdown setlocal formatoptions=aclnrot
|
"autocmd FileType markdown setlocal formatoptions=aclnrot
|
||||||
" The below was found here: https://github.com/preservim/vim-markdown/issues/232#issuecomment-246173676
|
" 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 formatoptions-=q
|
||||||
autocmd FileType markdown set formatlistpat=^\\s*\\d\\+\\.\\s\\+\\\|^\\s*\[-*+]\\s\\+
|
"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
|
" = Open folds by default
|
||||||
au BufWinEnter * normal zR
|
au BufWinEnter * normal zR
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user