From 66056d320cc42f29134dc68d665199e42989e3c8 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Mon, 3 Jun 2019 15:34:17 +0200 Subject: [PATCH] Improve Vim todo command --- vimrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vimrc b/vimrc index 0c18d8c..cb1ecc8 100644 --- a/vimrc +++ b/vimrc @@ -433,10 +433,10 @@ endfun command! Snapshot call snapshot() command! -nargs=? Scratch enew | set buftype=nofile | set filetype= -command! Todo enew | set buftype=nofile | set filetype=markdown | - \ call matchadd('Todo', '^\s*\[ \?\].*$') | +command! Todo call matchadd('Todo', '^\s*\[ \?\].*$') | \ call matchadd('Comment', '^\s*\[x\].*$') | - \ call matchadd('Error', '^\s*\[-\].*$') + \ call matchadd('Comment', '^\s*\[-\].*$') | + \ call matchadd('Error', '^\s*\[!\].*$') command! -nargs=? Tempfile exec 'new '.tempname() | set filetype= | au BufDelete call delete(expand('%')) " ┌──────────────────────────┐