From: Simon Ruderich Date: Mon, 10 Feb 2014 17:00:18 +0000 (+0100) Subject: vimrc: Map t to switch to real tabs. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=ee235b0a49c43d001e5bffddb122465450909df2;p=config%2Fdotfiles.git vimrc: Map t to switch to real tabs. --- 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