From ee235b0a49c43d001e5bffddb122465450909df2 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 10 Feb 2014 18:00:18 +0100 Subject: [PATCH] vimrc: Map t to switch to real tabs. --- vimrc | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.44.1