settings

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 7672e546267a10b61b1f392bd26f726253e22da0
parent 157be97a41c81dc4ef9ca811d242775ce448b451
Author: Paul Longtine <paul@nanner.co>
Date:   Sat Jul 25 23:17:52 2015

Made vim more compatable with people who prefer spaces over tabs

Diffstat:
 vim/.vimrc | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/vim/.vimrc b/vim/.vimrc @@ -1,8 +1,16 @@ -set tabstop=4 - +" virtual tabstops using spaces set shiftwidth=4 - -set smarttab +set tabstop=4 +set noexpandtab +" allow toggling between local and default mode +function TabToggle() + if &expandtab + set noexpandtab + else + set expandtab + endif +endfunction +nmap <F9> mz:execute TabToggle()<CR>'z set showcmd