Home  >  Q&A  >  body text

How to close the vim-airline tab after opening it

vim has installed the two plug-ins vim-airline and NERDTree.

Open the example pages bugreport.vim and delmenu.vim respectively, where bugreport.vim is page 1, delmenu.vim is page 3, and the sidebar generated by NERDTree is page 2

1. Why is the

sidebar generated by NERDTree also counted as an accumulated page? How to break it? How can I regard a tab opened by NERDTree as a whole?

2. Why can’t the opened tab page be closed using the

:tabc command


I am new to vim. Can any vimer please give me the answer?

大家讲道理大家讲道理2712 days ago908

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-05-16 16:37:58

    nerdTree’s command collection. I bound the switch nerdTree to the shortcut key F3. Just add this line to your .vimrc:
    map <silent> <F3> :NERDTreeToggle<CR>map <silent> <F3> :NERDTreeToggle<CR>
    其实,如果你想关闭nerdTree,只需要打:NERDTreeToggleIn fact, if If you want to turn off nerdTree, just hit :NERDTreeToggle

    In addition, nerdTree is not loaded by default when opening vim. If you want it to be loaded by default, just add this line to .vimrc:
    autocmd VimEnter * NERDTreeThe above Buffer can be closed by:

    To view all open buffers

    :Bclose。或者你也可以用:buffersIf you don’t want the statusline at the bottom, just

    comment it out in vimrc. I think it's still useful sometimes. . So I haven’t studied how to turn it off = =

    reply
    0
  • 某草草

    某草草2017-05-16 16:37:58

    This is not a tab, it is a window.

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 16:37:58

    reply
    0
  • Cancelreply