]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - vimrc
vimrc: also highlight NOTE as todo
[config/dotfiles.git] / vimrc
diff --git a/vimrc b/vimrc
index 0cfc4cb4e5d979df5551e9209ac5193e01d876e2..df56e12ea2133a6ea17ca5c34e8f20725ec973bd 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -614,6 +614,10 @@ if has('eval')
     endfunction
     nnoremap <silent> <Leader>t :call <SID>UseTabs()<CR>
 endif
+" Enable "verbatim" mode. Used to view files with long lines or without syntax
+" coloring.
+nnoremap <silent> <Leader>v :set nolist nowrap nospell synmaxcol=0<CR>
+                          \ :2match<CR>
 
 " Make last active window the only window. Similar to <C-W> o.
 nnoremap <C-W>O <C-W>p<C-W>o
@@ -805,7 +809,7 @@ if has('syntax')
 
         if exists('*matchadd')
 " Highlight some important keywords in all documents.
-            let l:todos = ['TODO', 'XXX', 'FIXME',
+            let l:todos = ['TODO', 'XXX', 'FIXME', 'NOTE',
                          \ 'CHANGED', 'REMOVED', 'DELETED']
             " Compatibility fix for Vim 6.4 which can't handle for in function
             " (without function it's ignored).