Questions tagged [nerdtree]
44 questions
84
votes
11 answers
Vim: How to synchronize NERDTree with current opened tab file path?
When I open a new tab with different path from the previous file in VIM, NERDTree will still remains the same directory hierarchy of the previous file.
Is there a sync shortcut to change the current root directory to the new opened file's directory?
Jichao
- 7,940
30
votes
3 answers
Change current directory using NERDTree
How can I navigate to a file or folder in NERDTree and change the working directory to that folder (or the folder containining the file I'm on).
I know it's possible to keep NERDTree in sync with the NERDTree root (nerdtree and current directory),…
mahemoff
- 1,071
- 2
- 11
- 16
26
votes
2 answers
Hide certain files in NERDTree
I would like to hide object files (*.o) in the Vim NERDTree plugin. Does the plugin support this feature, yet?
nnyby
- 1,509
20
votes
1 answer
Automatically close NERDtree when opening file
I have installed NERDtree 4.1.0.
I have mapped n to :NERDTreeToggle.
I would like to use this in a way where I can press n, then locate the deisred file in the explorer, press enter and have the NERDtree explorer disappear…
tmadsen
- 1,219
13
votes
7 answers
What could cause strange characters in Vim?
I'm have this really strange problem in Vim using the NERD tree plugin, where, as you can see in the picture, the characters are showing up very strange. Where there is the ahat, ~V 3/4 it should be |-. I've set my LANG to en_US and LC_ALL to en_US…
Tanner
- 361
10
votes
1 answer
Vim - Prevent NERDTree opening when invoked by git
Nice and simple, I'd like for NERDTree not to get involved when vim is invoked by git, for example when authoring a commit message or dealing with a rebase.
Presumably this is achievable by way of some kind of filetype detection (gitcommit etc), but…
jstephenson
- 233
10
votes
1 answer
How can I emulate key presses on Vim startup?
When I run vim, the NerdTree plugin opens a project explorer. I achieved this by adding the following line to my .vimrc file:
autocmd VimEnter * NERDTree
It opens two buffers but unfortunately I need to press ^W^W each time because the active…
gennad
- 349
8
votes
1 answer
nerdtree and current directory
How can I achieve this situation?
Open vim in my home folder.
Navigate somewhere with NERDTree
Run the :!ls command and see the contents of the directory in that NERDTree is displaying
nkint
- 799
7
votes
2 answers
OS X + Vim: Open Finder for a Folder in NerdTree (Vim)
I use the NerdTree plugin for MacVim religiously, and find myself often wanting to open a folder in the Finder to work with the files. An example would be wanting to preview and copy some images.
Is there a quick way to do this that doesn't involve…
Jason
- 201
7
votes
2 answers
How to search a collapsed file item in NERDTree vim plugin?
NERDTree is my best vim plugin. To find a file or directory item, I move to my cursor to tree view, and use /. But I still don't know how to find a file item which be in collapsed(closed) tree. NERDTree does not support this? How do you do find a…
Benjamin
- 2,399
7
votes
3 answers
Can't open folders in Linux nerdtree vim
I can't open folders in nerdtree vim. It won't open the folders, and these funky symbols are being displayed:
Does anyone have a clue about how to get this working?
I'm running UTF-8.
Darkmage
- 300
7
votes
1 answer
How do you install plugins for MacVim?
Specifically, I'm trying to install NERDtree. I downloaded the 4.10 package from github, unzipped it into ~/.vim/, and restarted MacVim (version 7.3).
Typing :nerdtree results in the following error:
E492: Not an editor command: nerdtree
In…
Closure Cowboy
- 730
7
votes
3 answers
How to open the parent dir of the current file in NERDTree?
Like what :Ve and :E did, but in NERDTree.
Cheng
- 1,483
7
votes
2 answers
Autorefresh NERDTree
I know how to refresh NERDTree manually hitting R when focus is in the NERDTree column.
I would like this done automatically.
If an event is needed to trigger this, let it be "whenever writing a file".
Someone suggests adding this to vimrc
nmap…
Jérôme
- 263
- 4
- 10
4
votes
1 answer
Changing drive in NERDTree (gVim, Windows)
If NERDTree starts up somewhere in the C: drive, once I reach C:\ itself (which NERDTree considers as "/"), I get the message "already at top dir" if I try to click on the double dot ..
NERDTree's help is all about navigating up and down…
Sundar R
- 1,539