]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - vimrc
vimrc: Map <Leader>v to "verbatim" mode.
[config/dotfiles.git] / 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