Questions tagged [plugin-nerdtree]

For questions about the plugin nerdtree: A tree explorer plugin for Vim.

25 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6 votes
0 answers
3k views

Collapse all directories in NerdTree by default

I recently restored my computer to a clean install and copied over my dot files. MacVim behaves quite a bit differently than my previous install. One main thing is that NerdTree no longer collapses ...
Chad Fawcett's user avatar
3 votes
2 answers
243 views

Prevent buffer loads within NERDTree

If I have many buffers opened and, if the cursor (focus) is within NERDTree, when I change the buffer with :bn or :bp, the content of buffer loads within NERDTree. There's a way to, before buffer ...
Diego Somar's user avatar
2 votes
0 answers
148 views

Nerdtree display current opened file after jumping into a tag

I'm not sure if this is possible, I have my nerdtree opened for file let's say main.cpp. Then I use tag jump to one of the definitions which is in a different directory but nerdtree window still shows ...
JZ67's user avatar
  • 45
2 votes
1 answer
111 views

NERDTree-go does not leave cursor in the NERDTree

NERDTree.txt says: go.......Open selected file, but leave cursor in the NERDTree......|NERDTree-go| Open selected bookmark dir in current NERDTree But when I typo go in a NERDTree buffer, ...
moco's user avatar
  • 21
1 vote
0 answers
106 views

Any vim plugins to integrate git status for each file in file window explorer?

is there any vim plugins could show git status for each file in file window explorer? Please notice that I am not asking integrate git status in statusline, but in file explorer like nerdtree/defx, ...
linrongbin's user avatar
1 vote
0 answers
20 views

saving a .v file triggers it to be opened in another window and gets E:325 in neovim

After trying to save a .v file, it triggers a new window to be opened with e:325 error with swap file already exists. This only happens to .v files. This only happens when neovim is opened from that ...
shaik azar AzarmadR's user avatar
1 vote
0 answers
128 views

NERDTree causes Vim exiting when open two buffers on same window

Here is what is happening: I open one file, either with o in NERDTree or with :edit file_a. I open another file, again with o in NERDTree or with :edit file_b, and the file opens at the same window ...
Xxxo's user avatar
  • 187
1 vote
0 answers
538 views

How to display NERDtree buffer in a floating window

Thanks to a comment on reddit I was able to move my FZF search to a floating window and whilst it looks cool my main gain was that it's faster or at least it feels faster because it's no longer ...
Thermatix's user avatar
  • 229
1 vote
0 answers
212 views

NERDTree seems to perform :lcd

Every time I open a file from NERDTree, it seems to do a :lcd to the location of that file. If I open 5 files from NERDTree, I will have 5 different working directories in each buffer. I can't seem to ...
Marius's user avatar
  • 111
1 vote
0 answers
960 views

Nerd tree show full filename

In nerdtree as we go deeper filenames are hidden due to smaller width of tree window. Is there a fix to show full filename over the window which is currently highlighted in tree?
Abel D's user avatar
  • 111
1 vote
0 answers
394 views

Open file in a new instance of vim from nerdtree

I'm actually using i3wmw so I'd like NERDtree, or any other option that works as a file tree to open the selected file in a new instance of vim, instead of in a new tab/buffer. Is there anyway to ...
Ckubrak's user avatar
  • 11
1 vote
0 answers
399 views

Split window & Fuzzy finder path with Nerdtree

Say I have one window open displaying folder foo. Then I open a new window by doing :vs ~/bar. Then I get a Nerdtree, and when using Ctrlp's fuzzyfinder by doing ,,. I expect the files displayed to be ...
dan-klasson's user avatar
1 vote
0 answers
138 views

:vsp sometimes making one split bigger than other and hiding NERDTree

So most of the time I have my standard layout like this: And every now and then I want to open a split in the main buffer using :vsp and most of the time that looks like this: And that is what I ...
Otis Wright's user avatar
1 vote
0 answers
371 views

NERDTree file extension highlighting issue: c files not highlighted

function! NERDTreeHighlightFile(extension, fg, bg) exec 'autocmd filetype nerdtree syn match ' . a:extension .' #^\s\+.*'. a:extension .'$#' exec 'autocmd filetype nerdtree highlight ' . a:...
Kibbles's user avatar
  • 11
1 vote
0 answers
820 views

Highlight all files open in buffer in NERDTree

Is it possible to get a list of all files in the buffer? And if so can we highlight all of them in NERDTree?
maged's user avatar
  • 195
0 votes
0 answers
13 views

NERDTree window change during tab switch

Currently, when using NERDTree, I hit Ctrl-ww to navigate to my NERDTree window from my editing window. Then, I navigate to a file I want to open, and hit t to open it in a new tab. Now, when I want ...
cz1's user avatar
  • 1
0 votes
1 answer
41 views

Vim - open wrong path when I run command ':vs .' run in Vim

When I run the :vs . command in Vim for the current working directory window split, the parent directory opens, not the current directory. Example: A/B/C$ vi test.c in Vim: :vs . Split window ...
linuxias's user avatar
  • 109
0 votes
0 answers
129 views

Making vim-fugitive compatible with file explorers

I have the vim-fugitive plugin and use :G a lot. If I have NERDTree as a plug or netrw enabled then :G will open either a NERDTree file or a netrw file instead of the usual fugitive file with the ...
hilbor's user avatar
  • 15
0 votes
0 answers
25 views

Cannot expand directory on NERDTree with hitting Enter because it's already used for opening new tab

So far, I'm happy enough with nvim+vimr for daily editing. My init.vim was generated by https://vim-bootstrap.com, and I only modified 2 lines: let g:nerdtree_tabs_open_on_gui_startup=0 let g:...
anta40's user avatar
  • 143
0 votes
0 answers
238 views

Nerdtree Tab witdth - how do I change the size?

When I press t in nerdtree, it opens the file in a new tab. But the tabs are very small. How do I make them longer (span the page)?
Vinn's user avatar
  • 627
0 votes
0 answers
98 views

Trouble after NERDTree installation using vim8's package manager instead other plugin

I got this strange NERDTree error. The vim distro I am using that fall into this problem install vim using vim8's package manager. Error detected while processing function <SNR>42_onNERDTreeInit[...
sensorario's user avatar
0 votes
0 answers
211 views

Nerdtree is slowing down neovim in basic config

I am currently trying to create a neovim environment to see if it can be my primary text editor. But I am already facing a problem with Nerdtree which is making neovim way too slow. I don't understand ...
PaulH's user avatar
  • 1
0 votes
0 answers
77 views

Install plugin for plugin

I'm trying to use nerdtree-git-plugin for nerdtree to be able to see git information within vim I'm using vim 8.2 and so have been using the built in package manager. I have the nerdtree files in ~/....
uroboros's user avatar
  • 101
0 votes
0 answers
161 views

map custom vim keybindings to NerdTree

I am almost new to the vim and I have this key mappings inside nvim config. that I want to be able to use inside NERDTree but I can't found a way. nmap <c-j> 4j ...
TheEhsanSarshar's user avatar
0 votes
0 answers
566 views

nerdtree: not allowed to enter a popup window

I'm using Vim8.2 with the plugin Nerdtree and some other plugins to work with Golang. Here is how I configure my vim: https://github.com/YvesZHI/Giraffa-vim All of configs can be found in the file ...
Yves's user avatar
  • 963