mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-08-05 16:48:38 +00:00
support for tabs betterly in vim. Killed off q and Q
This commit is contained in:
parent
f0986874cd
commit
9d0db4f1d8
1 changed files with 10 additions and 0 deletions
10
vimrc
10
vimrc
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue