]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: Map <Leader>v to "verbatim" mode.
authorSimon Ruderich <simon@ruderich.org>
Mon, 10 Feb 2014 17:01:48 +0000 (18:01 +0100)
committerSimon Ruderich <simon@ruderich.org>
Tue, 11 Feb 2014 02:07:00 +0000 (03:07 +0100)
vimrc

diff --git a/vimrc b/vimrc
index 0cfc4cb4e5d979df5551e9209ac5193e01d876e2..fb56e0cf08f2f61314aa5881e37e4bbbfb07d60d 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