New settings for alternating between tabs and spaces

This commit is contained in:
Kenneth Reitz
2010-11-09 18:54:45 -05:00
parent be7de6a8cf
commit d23dd08379
+3 -5
View File
@@ -108,10 +108,8 @@ au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
highlight BadWhitespace ctermbg=red guibg=red
" F2 and F3 for tabs vs spaces
nnoremap <F2> :set et <bar> retab<CR>
nnoremap <F3> :set noet <bar> retab!<CR>
imap <F2> <Esc>:set et <bar> retab<Cr>
imap <F3> <Esc>:set noet <bar> retab!<Cr>
" F2 to alternate between tabs & spaces
nnoremap <F2> :set invet <bar> retab!<CR>
imap <F2> <Esc>:set invet <bar> retab!<CR>i