support for tabs betterly in vim. Killed off q and Q

This commit is contained in:
dave 2009-04-17 15:38:25 -05:00
parent f0986874cd
commit 9d0db4f1d8

10
vimrc
View file

@ -262,13 +262,23 @@ nmap K K<cr>
" tabs
map <C-S-Tab> :tabprevious<CR>
imap <C-S-Tab> <Esc>:tabprevious<CR>i
map <S-Left> :tabprevious<CR>
imap <S-Left> <Esc>:tabprevious<CR>i
map <C-Tab> :tabnext<CR>
imap <C-Tab> <Esc>:tabnext<CR>i
map <S-Right> :tabnext<CR>
imap <S-Right> <Esc>:tabnext<CR>i
nmap <C-t> :tabnew<CR>
imap <C-t> <Esc>:tabnew<CR>i
map <C-w> :tabclose<CR>
" Disable q and Q
map q <Nop>
map Q <Nop>
" Toggle numbers with F12
nmap <silent> <F12> :silent set number!<CR>
imap <silent> <F12> <C-O>:silent set number!<CR>