Skip to content

Commit

Permalink
up up
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoffer Buchholz committed Apr 6, 2013
1 parent 7aaec6b commit 867b46d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions vimrc
Expand Up @@ -68,6 +68,20 @@ set backupskip=/tmp/*,/private/tmp/*"
set backupdir=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp set backupdir=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
set directory=~/.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`) " Use the OS clipboard by default (on versions compiled with `+clipboard`)
set clipboard=unnamed set clipboard=unnamed


Expand Down

0 comments on commit 867b46d

Please sign in to comment.