Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VIM - NerdTree - Open Bookmarks when VIM is started

Tags:

I set VIM to open NERDTree whenever VIM is started by doing this: autocmd VimEnter * NERDTree

What changes should I make to my vimrc file so that the Bookmarks also open up whenever VIM & NerdTree are started?

like image 618
Arpit Rai Avatar asked Jan 27 '11 16:01

Arpit Rai


People also ask

How do I switch between vim and NERDTree?

Bookmark this question. Show activity on this post. I normally switch screen in vim using ctrl+h or ctrl+l to switch between NerdTree and vim main window.

How do I turn off NERDTree vim?

If you want to close NERDTree window make sure you are inside the NERDTree menu. You can switch windows by using ctrl+w then type :q to close NERDTree window so that you will be left with the window for editing your code.


1 Answers

let NERDTreeShowBookmarks=1 will display the bookmarks table on startup. If you wanted to actually open the files for editing, I'm not sure how to do that.

NERDTree provides a very nice documentation file. If you extracted the zip file in ~/.vim, it is located at ~/.vim/doc/NERD_tree.txt. If you want to use with vim's built in help, run :helptags ~/.vim/doc/ and then you'll be able to access it with :help NERDTree.

Of course, if you extracted the zip someplace else, replace ~/.vim with the folder you extracted it into.

like image 132
cledoux Avatar answered Oct 27 '22 00:10

cledoux