Permalink
Browse files

up up

  • Loading branch information...
1 parent 7aaec6b commit 867b46db011ac236d8066f5c58b9cbfa820ff83a @ChrisBuchholz committed Apr 6, 2013
Showing with 14 additions and 0 deletions.
  1. +14 −0 vimrc
View
14 vimrc
@@ -68,6 +68,20 @@ set backupskip=/tmp/*,/private/tmp/*"
set backupdir=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
set directory=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
+" allow toggling between local and default mode
+function TabToggle()
+ if &expandtab
+ set shiftwidth=4
+ set softtabstop=0
+ set noexpandtab
+ else
+ set shiftwidth=4
+ set softtabstop=4
+ set expandtab
+ endif
+endfunction
+nmap <F9> mz:execute TabToggle()<CR>'z
+
" Use the OS clipboard by default (on versions compiled with `+clipboard`)
set clipboard=unnamed

0 comments on commit 867b46d

Please sign in to comment.