X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vimrc;h=0cfc4cb4e5d979df5551e9209ac5193e01d876e2;hb=ee235b0a49c43d001e5bffddb122465450909df2;hp=6e5e78d91c1e055f3f55aa90498f9ff6564fdad9;hpb=a77493928da388b4ac4d8418876c6db237bb6ce6;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index 6e5e78d..0cfc4cb 100644 --- a/vimrc +++ b/vimrc @@ -606,6 +606,15 @@ 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 + " Make last active window the only window. Similar to o. nnoremap O po