1
0
Эх сурвалжийг харах

Redo change tab bindings

I forgot <C-[> is also actually escape and it causes issues with plain
vim. It's also weird hitting <ESC> changes the tab
Thomas Dy 9 жил өмнө
parent
commit
d5067d2c86
1 өөрчлөгдсөн 3 нэмэгдсэн , 4 устгасан
  1. 3 4
      .vimrc

+ 3 - 4
.vimrc

@@ -90,16 +90,15 @@ vnoremap k gk
 " opening ctrlp
 nnoremap <C-O> :CtrlPBuffer<cr>
 
-nnoremap <C-[> :tabprev<cr>
-nnoremap <C-]> :tabnext<cr>
+nnoremap <C-T>h :tabprev<cr>
+nnoremap <C-T>l :tabnext<cr>
 
 " ------ nvim specific ------
 if has('nvim')
   let g:airline#themes#dark#palette.terminal = copy(g:airline#themes#dark#palette.insert)
 
   tnoremap <C-j><C-j> <C-\><C-N>
-  tmap <C-[> <C-\><C-N><C-[>
-  tmap <C-]> <C-\><C-N><C-]>
+  tmap <C-T> <C-\><C-N><C-T>
   tmap <C-W> <C-\><C-N><C-W>
   tmap <C-P> <C-\><C-N><C-P>
   tmap <C-O> <C-\><C-N><C-O>