Skip to content
Browse files

vim: change the formatlistpat variable to format lists properly

The previous value of this variable recognized numbered lists properly,
but it didn't format the un-ordered lists starting with `-` properly.
This commit removes the numbered list formatting (not very commonly
used) and instead adds formatting just for the un-ordered lists.


- Recognize lists of TODO items: `- [ ] ` or `- [x] `
- Re-introduce the numbered list regex

Previous value (vim default for markdown, probably)

  • Loading branch information...
icyflame committed Oct 27, 2019
1 parent 57bfeb6 commit 8b55363828e7794aa33166363c9ebdd51a46ebda
Showing with 5 additions and 0 deletions.
  1. +5 −0 vim/vimrc.symlink
@@ -338,6 +338,11 @@ autocmd FileType yaml setl indentkeys-=<:>
autocmd FileType proto,go,javascript set tw=100

autocmd BufNewFile,BufReadPost *.notes set filetype=markdown

autocmd FileType markdown
\ set comments=b:> |
\ set flp=^\\s*\[-*+\]\\s

autocmd BufWritePre *.notes autocmd BufWritePre <buffer> %s/\s\+$//e

set omnifunc=syntaxcomplete#Complete

0 comments on commit 8b55363

Please sign in to comment.
You can’t perform that action at this time.