Questions tagged [plugin-nerdtree]

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

Filter by
Sorted by
Tagged with
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, ...
0 votes
2 answers
916 views

switch to tab if already opened

I'm not familiar with vim code. I tried to use vim as IDE, I setup NERDTree plugin.this is my problem: assume I opened 4 files as tabs. if I press t on opened file already on NERDTree plugin, the ...
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 ...
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 ...
1 vote
1 answer
231 views

vim-devicons not rendered properly

I am configuring vim-devicons for my neovim and this is my init.nvim: :set number :set autoindent :set tabstop=4 :set shiftwidth=4 :set smarttab :set softtabstop=4 :set mouse=a call plug#begin() Plug ...
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 ...
0 votes
1 answer
124 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
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 ...
0 votes
1 answer
27 views

Making certain buffers invisible to commands involving "all" or bufdo

For my projects I generally open several tabs some of which might involve terminals or directory trees or quickfix (since ShellCheck sends its error messages there for instance). When I want to use ...
0 votes
1 answer
71 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
1 answer
21 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<...
3 votes
1 answer
1k views

How to show all LaTeX code but still have set conceallevel=3 for vim-devicons and NERDTree?

How can I adjust my .vimrc so that set conceallevel=0 is specific to just LaTeX documents? The plugin vim-devicons requires the following conceal level with NERDTree: set conceallevel=3 However, ...
48 votes
6 answers
85k views

How do I open and close NERDTree (toggle NERDTree view) using a single keystroke?

Sometimes in my workflow, I might want to open or search for a file on the go. I'd like to map a single key (say F6) to open and close NERDTree (i.e., I want to toggle the NERDTree view). Also, I'd ...
1 vote
1 answer
300 views

NerdTree... after using <m> bottom panel stays bigger and wont disappear [duplicate]

When using Menu in NERDTree to create a directory/file and toggle it off, will keep bottom window open.
1 vote
1 answer
104 views

NERDTree Leaving Empty Space on Bottom of Window

I've been using NERDTree forever, but recently it started doing something odd. When I open the NERDTree Menu, it adds this block of space at the bottom of the window, and I can't get rid of it (...
0 votes
2 answers
265 views

How to close NerdTree Menu?

I use Vim plugin NerdTree. If I have to quickly add a file, the NerdTreeMenu I get by pressing m is very helful. How I can close my NerdTreeMenu? I'm unable to find information in any documentation on ...
0 votes
1 answer
28 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
72 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 ...
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:...
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 ...
1 vote
1 answer
173 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
1 answer
2k views

How to map NerdTree commands?

I am used the vifm's hjkl key maps to navigate and open files. After installing NERDTree , I find it difficult as now the l key wont open file but will just move the pointer to the left( unlike in ...
0 votes
2 answers
125 views

Adapt side panels to different screen resolution (aspect ratio)

How can I adopt side panel plugins (TagBar, TagList, NerdTree, etc) width to current screen aspect ratio? Using Vim with many different computers makes me a bit trouble to write one portable config ...
0 votes
1 answer
247 views

Disabling a plugin loading when launching Vim from `git commit`

Is there a way to disable a plugin only on occasions where Vim was launched from another program? I have set Vim (Neovim, more specifically) to be the default core.editor of my git configuration and ...
3 votes
2 answers
10k views

NERDTreeTabs error message: E492: Not an editor command

I am using macvim Version 8.0.1098 (137) MacOS Sierra 10.12.6. I downloaded NerdTree tabs from here. I am using pathogen to manage my plugins. All the plugins work except this one. This is the error ...
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)?
2 votes
1 answer
257 views

Vim hides files inside directories with brackets in the name

I've been dealing with a huge problem of NeoVim for weeks (also applies to Vim a GVim) and I failed to find the solution on my own. What's happening is that NERDTree is hiding the content of any ...
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, ...
3 votes
1 answer
2k views

How to use NerdTree to automatic focus on the current opened file position when toggle it on?

When use vim with nerdtree, I opened a file in a project. Press <Leader> key to trigger NERDTreeToggle. On the left side it will list the whole project directory by default. I want to let it ...
0 votes
1 answer
107 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 ...
2 votes
3 answers
1k views

Unable to Open NERDTree

I'm new to Vim, and for the paste couple of weeks, I've been using NERDTree with no problems. However, I recently added a few key mappings and am now unable to open NERDTree with the <C-n> ...
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[...
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 ...
3 votes
1 answer
840 views

Execute a file from nerdTree

With the default file explorer (netrw) you can press x to open a file or directory with the system default application. Is there an easy way I can do the same with nerdTree? I can't find the option. ...
2 votes
2 answers
1k views

Why does my lightline status line not show up right away?

Currently when I open a file (NerdTree appears automatically as well), the light line status line plugin I installed does not show up right away. It only shows up after I switch tabs into NerdTree and ...
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 ...
0 votes
1 answer
447 views

Start vim with NERDTree like we do Visual Studio Code/Sublime

I have decided to learn vim and want to give it a go for a month. I am about a week in, and it has been OK. I say "OK" because I do run into the usual frustrations that a n00b might run into....
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 ~/....
1 vote
4 answers
608 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 ...
9 votes
3 answers
7k views

Summary of functions in current file?

While working in various source files, (C, Ruby, etc.) I find that I'm often hunting around for functions. Is there a way to have an auto-generated HUD that lists the structure of the current file? It ...
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 ...
-1 votes
1 answer
659 views

Open project folder with Nerdtree and cd into it

I have let g:NERDTreeChDirMode=3 and expect nvim ~/Projects/foo to run nvim with :pwd set to ~/Projects/foo. But instead it has :pwd set to my home directory from which I am running it. As a result ...
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 ...
1 vote
1 answer
271 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
113 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 ...
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 ...
9 votes
5 answers
17k views

How to set up NERDTree to CD to current folder when opening it for the first time via :NERDTreeFind

Given: $ cd ~/Sites/project project $ vim :NERDTreeFind I would like to see NERDTree opening with ~/Sites/project as a root folder. Instead I see ~/Sites with project folder selected. So I have to ...
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 ...
0 votes
1 answer
597 views

when viewing the nerdtree window, how can i widen it?

I know if i have a horizontal pane at the bottom I can write something like copen 50 and make it taller. How can i make a vertical pane wider?
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 ...