X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vimrc;h=df56e12ea2133a6ea17ca5c34e8f20725ec973bd;hb=85fea365744e1deda5213e2a900c5bc563350090;hp=6e5e78d91c1e055f3f55aa90498f9ff6564fdad9;hpb=d4e210cae2158d66e01765641bc6b615f9c103b9;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index 6e5e78d..df56e12 100644 --- a/vimrc +++ b/vimrc @@ -606,6 +606,19 @@ nnoremap 8 :8buffer nnoremap 9 :9buffer nnoremap 0 :10buffer +" Use real tabs instead of soft tabs. +if has('eval') +" Switch from soft tabs to real tabs. + function! s:UseTabs() + setlocal noexpandtab shiftwidth=8 softtabstop=8 + endfunction + nnoremap t :call UseTabs() +endif +" Enable "verbatim" mode. Used to view files with long lines or without syntax +" coloring. +nnoremap v :set nolist nowrap nospell synmaxcol=0 + \ :2match + " Make last active window the only window. Similar to o. nnoremap O po @@ -796,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).