How to close vim-airline after opening tab

  question, vim

Vim installedvim-airlineAndNERDTreeThese two plug-ins.

Open the sample pages separatelybugreport.vimAnddelmenu.vimOf whichbugreport.vimIt is the first1Pages,delmenu.vimIt is the first3Pages,NERDTreeThe resulting sidebar is the first2Page

1. WhyNERDTreeprocreantSidebarAlso count as a cumulative page, how to break it? How can we put theNERDTreeOpen a tab as a whole?

2. Why is the tab page opened used:tabcThe order cannot be turned off.

图片描述


I am new to vim. Which vimer will answer with his hand?

Command set for nerdTree. I bound the switch nerdTree to the shortcut F3, and just add this line to your. vimrc:
map <silent> <F3> :NERDTreeToggle<CR>
In fact, if you want to close nerdTree, you just need to hit:NERDTreeToggleJust do it

In addition, nerdTree does not load by default when opening vim, if you want itDefault loadAdd this line to vimrc:
autocmd VimEnter * NERDTree

The Buffer above is closed by::Bclose. Or you can use it:buffersTo view all open buffer

At the bottom of the statusline, if you don’t want it, put it in vimrc.set statuslineThe notes are off. I think it can be useful sometimes. . So I haven’t studied how to close = =