Allow spaces in todo files

This commit is contained in:
Talia 2019-05-29 08:34:39 +02:00
parent 168efd6dbd
commit d19a3f32d2

6
vimrc
View file

@ -434,9 +434,9 @@ command! Snapshot call <sid>snapshot()
command! -nargs=? Scratch enew | set buftype=nofile | set filetype=<args>
command! Todo enew | set buftype=nofile | set filetype=markdown |
\ call matchadd('Todo', '^\[ \?\].*$') |
\ call matchadd('Comment', '^\[x\].*$') |
\ call matchadd('Error', '^\[-\].*$')
\ call matchadd('Todo', '^\s*\[ \?\].*$') |
\ call matchadd('Comment', '^\s*\[x\].*$') |
\ call matchadd('Error', '^\s*\[-\].*$')
command! -nargs=? Tempfile exec 'new '.tempname() | set filetype=<args> | au BufDelete <buffer> call delete(expand('%'))
" ┌──────────────────────────┐