Switching to a particular tab in VIM

前端 未结 3 465
感动是毒
感动是毒 2020-12-12 20:19

I was trying to switch from a tab to another tab (which may not be adjacent to the previous tab) in VIM. Is there any shortcut for that, like we have Ctrl-p<

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-12 20:58

    Just for sharing the key mapping to jump into particular tab directly. Please put them into _vimrc and make it work.

    " Jump to particular tab directly
    "NORMAL mode bindings for gvim
    noremap   1gt
    noremap   2gt
    noremap   3gt
    noremap   4gt
    noremap   5gt
    noremap   6gt
    noremap   7gt
    noremap   8gt
    noremap   9gt
    noremap   10gt
    
    "INSERT mode bindings for gvim
    inoremap   1gt
    inoremap   2gt
    inoremap   3gt
    inoremap   4gt
    inoremap   5gt
    inoremap   6gt
    inoremap   7gt
    inoremap   8gt
    inoremap   9gt
    inoremap   10gt
    

提交回复
热议问题