Questions tagged [plugin-nerdtree]

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

Filter by
Sorted by
Tagged with
3
votes
1answer
28 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
1answer
25 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
0answers
42 views

NERDTree hide files in the .gitignore file

I am using vim (exact details at the bottom of the text) with NERDTree and nerdtree-git-plugin plugins. I don't want NERDTree to show files mentioned in the .gitignore file. I couldn't find any ...
0
votes
0answers
23 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
1answer
24 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 ...
2
votes
2answers
335 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
0answers
54 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
0answers
48 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
4answers
259 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 ...
0
votes
1answer
211 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....
1
vote
0answers
43 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
1answer
226 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
0answers
49 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 ...
0
votes
1answer
651 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 ...
1
vote
1answer
106 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
1answer
51 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
1answer
43 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
0answers
273 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 ...
0
votes
0answers
17 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
1answer
160 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?
0
votes
0answers
54 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 ...
1
vote
0answers
23 views

Make nerdtree use the same nerdtree buffer when entering many directories [closed]

In nerdtree, if I enter many directories and then open the file I want, my screen would look like this: | nerdTree window | Tab1:directory1 | Tab2:directory2 | Tab3: file1 | Tab1 and Tab2 are not ...
1
vote
1answer
1k 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
1answer
125 views

NerdTree cd vs CD

I'm not quite sure of the difference between cd and CD in NERDTree. It seems to actually cd into a directory I have to do cdCD, so for me they are kind of mushed together. From the docs it says: CD --...
1
vote
2answers
226 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 (...
0
votes
2answers
539 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 ...
1
vote
1answer
59 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
0answers
17 views

Return value to custom function [duplicate]

I'm writting a function to integrates NERDTree with Ack. The goal is to create a "Find in Directory". I create this: function! Fif_NERDTreeGetPath() let nodePath = g:NERDTreeFileNode.GetSelected()....
1
vote
2answers
426 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 ...
2
votes
1answer
101 views

YCM causes some error while loading nerdtree

I'm using vim to do my code job and I installed Nerdtree and YCM. With this merge, YCM has two functions, which allows us to get the error and warning counts. Here is my .vimrc: autocmd VimEnter * ...
0
votes
3answers
783 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 ...
1
vote
1answer
5k views

Vim-devicons not working at all [closed]

I tried installing vim-devicons to be used with nerdtree(using vim-plugin). I tried devicons FAQ, everything is fine except "check if you are able to see the characters, from ex mode:", i tried ...
1
vote
0answers
101 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 ...
2
votes
1answer
94 views

Edit NERDTree text using normal mode vim keybindings

When using the "Add Childnode", "Move Node", "Copy Node", etc. options through the "m" menu, it opens up a text field to type in the name of the destination file. Unfortunately, I cannot figure out ...
1
vote
0answers
336 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 ...
3
votes
2answers
2k views

Disable Lightline on Nerdtree

I would like to disable or hide Lightline (i.e. vim's statusline) when my cursor is in Nerdtree, while keeping it activated for other buffers. Here is what I mean: How can I achieve this? ...
1
vote
1answer
327 views

NERDTree is not displayed in buffer list

I'm currently exploring ways to iterate through all buffers in vim and am confused by the behavior of NERDTree. I displayed the NERDTree directory tree and expected that the viewport is bound to ...
1
vote
3answers
368 views

Easily add/open a file in the same folder as the current file/buffer

I feel my current VIM setup is pretty sweet, but there is one thing that annoys me time and time again: how can I open a file or add a file to the same directory as the current file I am editing? If ...
1
vote
3answers
378 views

NERDTree maximize on enter

I'd like to maximize NERDTree when I enter the NERDTree buffer. The command I have so far is: autocmd BufEnter NERD_tree_* <A> ...but the <A> part is wrong. I get the error: E21: Cannot ...
1
vote
1answer
483 views

Apply templates when new file created

I have a file template which is rendered with replacing some stubs when new file created: augroup templates autocmd! autocmd BufNewFile *.java $r ~/.vim/templates/skeleton.java|call s:...
0
votes
0answers
34 views

How to resize default NerdTree width? [duplicate]

I don't know what changed recently but my NerdTree keeps opening up super wide and pushing my existing window to the right. Here's a picture: Before opening NerdTree: After: I tried adding this ...
0
votes
1answer
258 views

Check nerd tree is open function

I'm trying to create a simple function in vim which lets me map <leader>b, <leader>n, and <leader>0 to execute a function that checks if a nerd tree is open then cycle tabs and do :...
2
votes
1answer
1k views

NERDTreeMenu Remapping

I'm a Colemak keyboard layout user and I recently started to learn and use Vim. I was able to map the arrow keys in the normal mode by putting custom mappings such as noremap u k in .vimrc (because ...
3
votes
1answer
382 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. ...
1
vote
1answer
924 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, ...
2
votes
1answer
328 views

Weird extra text after my file name in nerdtree {language}

I'm not sure if it is duplicated or not, I tried to find Google also in here but cannot find the correct answer. I do not know why it shows {language} next to the file languages.js, as I use almost ...
0
votes
1answer
1k views

Change working directory color in NERDTree

Is there any ways to change the font color and background of the working directory as seen in Sublime text? Sublime Text Neovim with NERDTree
1
vote
1answer
545 views

VIM: bufnr("%") not matching number from :buffers for NERDTree buffers

I am using NERDTree to open files. If I am on a file path in vim and I hit gf this works fine for files. For folders, gf opens a new NERDTree buffer in this folder which is fine. I can then choose a ...
2
votes
3answers
5k views

Can I open a file in a new tab with ctrl + return in NERDTree?

In my current environment, I open a file with return key in NERDTree, but sometimes I want to open it in a new tab. That being said, there is still more case where I want to open a file in the current ...
0
votes
1answer
397 views

NerdTree Toggle seems to overwrite my set columns=80

This is my .vimrc configuration: set columns=80 set linebreak It works as expected but when call NerdTree Toggle the lines expand to fix the terminal window size. Even when NerdTree is deactivated ...