Questions tagged [nerdtree]
The nerdtree tag has no usage guidance.
44
questions
0
votes
0
answers
33
views
Vim: How can I synchronise NERDtree with terminal pane
My Vim session currently resembles this:
+-----------------------+
| NT | Open file |
| | |
| |-----------------+
| | Terminal |
| | |
+---...
4
votes
1
answer
414
views
Vim NERDTree increases the command line size and doesn't shrink it back
I am using MacVim 9.0 with NERDTree. Some commands in the NERDTree cause the command line to increase in height to display the full command description. (For example, pressing m in the NERDTree window,...
0
votes
0
answers
851
views
How can I hide and show files easily in vim nerdtree?
I use vim for everything, and when in javascript, I want to ignore my node_modules directory, but reveal it when I need it. I've already applied the solution using NERDTreeIgnore, but that keeps it ...
2
votes
0
answers
466
views
Do not change tabs on file re-open with Vim NERDTree
This is similar to NERDTree: open file in current window? in setup, but different in intent.
Sequence of events:
I have a tab in Vim (v8.1) with a window that has a buffer open for a particular file....
7
votes
2
answers
5k
views
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 ...
0
votes
1
answer
473
views
Open the folder on the cursor with another application NerdTree
I'm using NERDTree, it would be awesome if, when I'm with the cursor over a folder, I had a way to call my file manager, say thunar, whit a mapping to open that folder. Like Sublime does.
0
votes
1
answer
704
views
opening NERDTree to point to my file but with full directory tree
I'm using vim, cscope and NERDTree and I cannot find how to open NERDTree to be pointing to specific file (one that is an active buffer) but to have root directory equal to directory from which I ...
0
votes
1
answer
211
views
How do I go to top window in NERDTree for Macvim?
I've googled around a lot but I can't seem to find the solution for this. I want to switch to upper or bottom window using shortcut. Currently, I'm using Ctrl+w w but the command is switching around ...
2
votes
1
answer
1k
views
Vim NERDTree | Remap '<cr>' to 'go' | open file but remain in NerdTree window
I'm trying to remap Nerdtree keys so that <cr> opens a file but the cursor stays in the nerdtree window. Nerdtree has this capability by default and can be triggered with the g + o key mapping. ...
3
votes
2
answers
1k
views
Vim NERDTree not working
Encountered a strange bug. I cannot open directories/files in NERDTree when I double click or press o. Any help is appreciated.
3
votes
1
answer
5k
views
NERDTree: open file in current window?
When I open a file in a NERDTree buffer that was created by opening a directory, when I press <CR>, it opens the selected file in the current window unless the file is open in another window, in ...
28
votes
3
answers
35k
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 ...
0
votes
1
answer
51
views
Remote server browser
Is there any tool for pretty display directory structure where I'm currently in?
My flow is pretty tedious like
cd 'dir1'
ls
cd 'child1'
ls
and so on. I'd like to have some NerdTree + console ...
1
vote
1
answer
142
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 ...
1
vote
2
answers
11k
views
Open file in new buffer in NERDTree?
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 NERDTree ...
0
votes
1
answer
755
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 on ...
0
votes
2
answers
457
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?
3
votes
1
answer
2k
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 ...
1
vote
1
answer
543
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 ...
0
votes
1
answer
936
views
Can I make the font size in my NERDTree window smaller than in all other windows of Vim?
Can I make the font size in my NERDTree window smaller than in all other windows of gvim?
I like large font size of 15 but I'd like the folder tree window of NERDTree to be 12 - is this possible to ...
2
votes
2
answers
1k
views
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 ...
10
votes
1
answer
983
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
1
answer
4k
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
1
vote
1
answer
2k
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 ...
7
votes
2
answers
4k
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 ...
7
votes
2
answers
9k
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
1
answer
524
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
1
answer
6k
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
2
answers
571
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 ...
7
votes
3
answers
6k
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.
13
votes
7
answers
21k
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
1
answer
310
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 ...
4
votes
3
answers
3k
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 ...
20
votes
1
answer
8k
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 ...
10
votes
1
answer
5k
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
2
answers
1k
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 ...
7
votes
1
answer
8k
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
1
vote
1
answer
886
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 ...
3
votes
1
answer
1k
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 ...
7
votes
1
answer
13k
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
1
answer
1k
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 ...
7
votes
3
answers
4k
views
How to open the parent dir of the current file in NERDTree?
Like what :Ve and :E did, but in NERDTree.
82
votes
11
answers
56k
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 ...
24
votes
2
answers
12k
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?