Questions tagged [plugin-nerdtree]
For questions about the plugin nerdtree: A tree explorer plugin for Vim.
116 questions
0
votes
1
answer
93
views
NerdTree: Make view static + find currently open file
I am currently using NERDTree in Vim. I often have multiple tabs open and I switch between them using the gt key command.
Current view with tabs:
I currently experience two issues with NERDTree
When ...
1
vote
1
answer
158
views
How to open NERDTree quickly?
I have read the NERDTree help and found that to close NERDTree, we could type :q.
How can I open NERDTree the shortest way?
I am now typing :NERDTree to open NERDTree, but I think it is too slow for ...
0
votes
1
answer
589
views
Is it possible to have NERDTree open file in a selected window?
Suppose I have 4 split windows with window number 1 the file explorer and window number 2-4 different file buffers. Can I have NERDTree open a new file in a selected window, say window number 4? I ...
0
votes
0
answers
442
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 ...
0
votes
1
answer
56
views
Toggle NERDTree in seperate window
I want to toggle vim in a whole new window and as I searched, I can open vim in new window using:
:NERDTree | only
So I set this in my vimrc:
nnoremap <C-n> :NERDTreeToggle <bar> only<...
0
votes
1
answer
55
views
The behavior of bufname is unclear to me
I use NERDTree and try to apply the recipe that ensures no one replaces its buffer.
I do the following:
Start vim
Execute :NERDTreeFocus
Open some file
Execute :q for file buffer
(At this point there ...
1
vote
1
answer
169
views
How to toggle from file to NERDtree showing the directory that keeps the file in current window?
When I open a vertical split by providing the path to a directory with :vsplit /my/dir the split window opens with NERDtree showing the directory. I then open a file /my/dir/file. I would then love to ...
1
vote
1
answer
347
views
Closing buffer when changing files with NerdTree
I am using NVIM v0.7.2 on Arch Linux. Right now I got a problem with the plugins vim-easycomplete and nerdtree.
When I operate on one file and open another one, the first file stays in the buffer. On ...
0
votes
0
answers
394
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)?
1
vote
0
answers
130
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, ...
0
votes
1
answer
182
views
how to install this? NerdTree visual selection
I've been trying to install this package called nerdTree-visual-selection. It is a package that 'defines key mappings that will work on nodes contained in a Visual selection in NERDTree'.
It was weird ...
0
votes
1
answer
139
views
^G appears on my NERDTree
I am building my personal and little distro of vim. I've just installed few plugins using this installer:
The vimrc file
" encoding
set encoding=utf-8
" Tabs and spaces
set expandtab
set ...
0
votes
0
answers
308
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 ...
1
vote
4
answers
897
views
How can I edit trees in Vim?
If I'm not mistaken, NerdTree and Fern are for viewing directories, not for editing general trees (Ordered trees of strings in CS terms)
If so, is there a way to edit general trees in Vim? (It should ...
2
votes
0
answers
199
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 ...
1
vote
1
answer
283
views
map custom Vim keybindings to NERDTree
I am almost new to the Vim and I have this key mappings inside Neovim config.
that I want to be able to use inside NERDTree but I can't found a way.
nmap <c-j> 4j ...
1
vote
2
answers
381
views
How to refresh Nerdtree while switching the git branch
This question comes from here: https://github.com/tpope/vim-fugitive/issues/1586
In a word, I'm using the two plugins: Nerdtree and vim-fugitive. What I need is when I execute :Git checkout mybr, I ...
0
votes
1
answer
166
views
Going up one dir in NERDTree keeping the old root open, together with all its open children, recursively
I do this,
$ tree
.
├── dir1
│ ├── dir11
│ │ └── hello
│ └── dir12
│ └── hello
└── dir2
├── dir21
│ └── hello
└── dir22
└── hello
$ cd dir1/dir11
$ vim
then I open ...
1
vote
0
answers
40
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 ...
1
vote
0
answers
164
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 ...
3
votes
1
answer
4k
views
Nerdtree going to specific directory
Is it possible to go to a typed-in directory in Nerdtree (when already in it)? The below seems so common to do:
$ cd ~/my/directory/here
And with my current understanding of NerdTree it requires me ...
1
vote
2
answers
490
views
Problems after update to OSX Catalina
I recently updated my MacBook to OSX Catalina and now I am getting some unwanted behavior in vim (though it seems to be working overall?).
On opening vim I see the following stream of errors (...
1
vote
1
answer
163
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, ...
1
vote
2
answers
697
views
How to manage windows properly
I've used two plugins with vim: Nerdtree and Taglist.
However, if I quit the opened file and open another file in the Nerdtree, it will become:
Which means that the new opened file is displayed at the ...
0
votes
3
answers
2k
views
NerdTreeToggle always opens up two directory windows instead of one
I'm using Nerd-tree for vim. Whenever I use :NERDTreeToggle key, it opens up two directory windows instead of one, like so
It's only when I type :qon one of the windows does it become like this
How ...