Switching between tabs in NERDTree

前端 未结 9 2092
旧时难觅i
旧时难觅i 2020-12-22 15:59

I\'ve just started using the NERDTree vim plugin for my project.

I can\'t find the documentation for switching between opened tabs. Can anyone tell me the shortcut k

9条回答
  •  误落风尘
    2020-12-22 16:10

    To enable Tab navigation like firefox add this to your vimrc:

    nnoremap  :tabprevious
    nnoremap    :tabnext
    nnoremap      :tabnew
    inoremap  :tabpreviousi
    inoremap    :tabnexti
    inoremap      :tabnew
    inoremap    :tabclose
    

    Also this come in handy Use to go to the nth tabpage

    nnoremap  1gt
    nnoremap  2gt
    nnoremap  3gt
    nnoremap  4gt
    nnoremap  5gt
    nnoremap  6gt
    nnoremap  7gt
    nnoremap  8gt
    nnoremap  9gt
    nnoremap  10gt 
    

    Where,

      C --> ctrl key
      S --> Shift key
      A --> Alt key
      F1-10 --> Are the function keys
    

    NOTE: Alt + f4 is usually used for closing of the windows. So check for that. If problem persists you can always map Ctrl or Shift key instead of Alt key, or use some combination of these.

提交回复
热议问题