1

I thought I was working in a vim file and wanted to undo by hitting u. But sometimes I do it in NERDTree and it moves tree root up a dir by mistake.

Now I have to dig into directories to go back my working directory. Is there any simpler way to display my working directory in NERDTree?

Thanks in advance.

1 Answer 1

0

Since Bookmarks are displayed on top of the tree, you can create a Bookmark of you working dir. Move to the working dir and type :Bookmark in command mode. The name of the dir appears in curly braces next to the dir name. (Be aware that no spaces are in dir name. Is that the case, you have to name the Bookmark by you own with Bookmark <name>).

To display Bookmarks, type B in NERDTree buffer.

Have also a look into the help: :help nerdtree

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .