0
votes
0answers
6 views

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 ...
1
vote
1answer
32 views

Going back to the working dir after hitting u a couple of times in Vim, NERDTree

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 ...
0
votes
1answer
195 views

NERDTree: Open file in new buffer?

I'm just getting used to NERDTree and Vim. I currently have one file open in a buffer. How do I get NERDTree to open another file in a buffer to the right? If I just navigate to the file in ...
0
votes
1answer
76 views

Vim mapping two NERDTree command as a single key stoke

Using VIM with NERDTree and NERDTreeTab, have following key map in my .vimrc so I can find it just by pressing F5 map <F5> :NERDTree<cr> The problem is that I want cursor stay focused ...
0
votes
1answer
35 views

How do I enable mouse only for a particular split screen in VIM?

I'm using NERDTree with mintty and cygwin on Windows. Is there a way to enable mouse only for the NERDTree split screen?
1
vote
1answer
324 views

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 ...
0
votes
1answer
138 views

NERDTreeToggle opens in Windows/system32

I've added the following useful settign to _vimrc: map <F2> :NERDTreeToggle<CR> If I open gvim and then press F2 NERDTree will open but in the directory Windows/system32 which takes a ...
1
vote
1answer
300 views

Solved — Hide dot and dotdot (“./”, “../”) directories in NERDTree gVim

This is in gVim on Windows. NERDTree is registering ../ and ./ links in every directory. By the -> I thought perhaps they were shortcuts/symlinks that got added to all my directories, however in ...
2
votes
1answer
115 views

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 ...
2
votes
1answer
589 views

How to setup nerd tree default directory

Can anyone show me how to setup Nerdtree default directory ? Everytime I open nerdtree it always point to my "documents and setting/user/" How can I tell nerdtree to point to "D:/working/" Thanks ...
0
votes
0answers
111 views

(Mac)VIM disable NerdTREE for new and single files

I have configured NerdTree to open up when i start VIM by using Pathogen and placing NERDTree in my .vim/bundle directory. I have installed NERDTreeTabs the same way. I don't want NERDTree to open ...
3
votes
2answers
365 views

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 ...
3
votes
2answers
873 views

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. ...
0
votes
1answer
251 views

NERDTree failing on VIM

NerdTree isn't working with Vim from iTerm2 for me. It will show the current directory listing but won't let me traverse deeper into the file system, but I can traverse upwards. All directory listings ...
1
vote
1answer
543 views

How to move previous opened file in NERDTree?

Does NERDTree have a stack to track opened files? I want to go back to previous file easily(As like ctags does by Ctrl+T). But I can't find the feature in it's manual. Is it even possible?
1
vote
2answers
278 views

vim NERDTree shortcut to an existing function

I want to use the right-arrow key to open a node in NERDtree. I see there is NERDTreeAddKeyMap, but I'm too much of a vimscript newb to know how to invoke it properly. I want right-arrow to invoke ...
4
votes
1answer
1k views

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.
6
votes
3answers
4k views

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 ...
0
votes
1answer
207 views

VimScripting NERDTree

Trying to force cursor to leave NERDTree window on MacVim startup (mvim .) so I could continue make new split-ups and open certain files in them. But it feels like cursor is stuck in the NERDTree and ...
3
votes
2answers
891 views

expanding current directory in NERDTree without changing root

Is there a way to make NERDTree expand to display the current file's directory - without messing with the working directory or changing the tree root? So when working with baz.ext, it should look ...
6
votes
1answer
1k views

Automatically close NERDtree when opening file

I have installed NERDtree 4.1.0. I have mapped <leader>n to :NERDTreeToggle<CR>. I would like to use this in a way where I can press <leader>n, then locate the deisred file in the ...
2
votes
1answer
775 views

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 ...
0
votes
2answers
451 views

how to open cpp and h files automaticcaly and split them

hi i'm new to vim but i'm loving it. with NERDtree plugin i want to have a little script then when i open a file (.cpp or .h) it opens automatically the .h and .cpp splitted with .h in uppeer split ...
5
votes
1answer
2k views

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
0
votes
1answer
553 views

How to make Vim open existing buffers with NERDTree

I recently discovered NERDTree and Command-T but when I open files that has already been opened I get the really annoying "VIM - ATTENTION Swap file already exists" popup and I click abort and then I ...
1
vote
1answer
612 views

Vim becomes unresponsive when toggling NERDTREE

I'm new to Vim and loving it, but I have an annoying problem; whenever I toggle NERDTREE, I get this message: Please wait, caching a Large dir... Vim then becomes unresponsive until I quit it. I ...
4
votes
1answer
5k views

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: ...
0
votes
1answer
332 views

How Can I Close the Leftmost Window in Vim?

I'm trying to write a command that will close a tree-browser (vim-tree) window and resize the other windows. ,to opens the window and adjusts the window size so that all open windows retain a normal ...
4
votes
3answers
1k views

How to open the parent dir of the current file in NERDTree?

Like what :Ve and :E did, but in NERDTree.
20
votes
6answers
8k views

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 ...
8
votes
1answer
2k views

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?