Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [plugin-nerdtree]

A tree explorer plugin for Vim

1
vote
1answer
48 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 ...
0
votes
1answer
39 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
41 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 ...
0
votes
1answer
85 views

How to make the edit command open the file in the first non NERDTree buffer window

so whenever I open a file be it from using FZF, NERDTree or directly using edit, IF I happen to be in the NERDTree buffer it will open the file in the buffer. How do I make it so that whenever a ...
1
vote
1answer
63 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
1answer
140 views

Change buffer focus on enter?

I set up my .vimrc so that NERDTree automatically shows up on the left when opening vim for editing a file (autocmd VimEnter * NERDTree). This means, that NERDTree is the active buffer instead, and I ...
2
votes
2answers
82 views

How to setup vim for working in a very large directory?

I am trying to setup my development environment using vim and some plugins. My workspace root is a directory with very large number of sub-directories and files. I am going to be working on files ...
0
votes
0answers
29 views

NERDTree: How to recursively open all directories but vendor/?

3rd party directories are almost never used, yet take a lot of time to index.
0
votes
0answers
52 views

How to make leaderF open selected file in non nerdtree buffer

This is my current config for leaderF: call dein#add('Yggdroot/LeaderF',{ \'build': "sh install.sh" \}) let g:Lf_ShortcutF = '<c-p>' let g:Lf_ShortcutB = '<m-n>' noremap <m-p> :...
1
vote
0answers
35 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 ...
2
votes
1answer
561 views

how to split panes (vertically and horizontally) straight from nerdree

This question is a follow up to this one (graphs copied from there). The OP was wondering how to split the pane of File 3 horizontally. /========================================================\ | ...
0
votes
1answer
50 views

Weird behavior of NERDTreeFind function

I have keymap in my init.vim file nmap <silent> <leader>y :call NERDTreeFind()<cr> It opens a default file in the NERDTree window from vim's command line by typing :NERDTreeFind as ...
4
votes
2answers
234 views

NERDTree on Vim

I'm running into a problem that I've never really ran into before with my setup. I've set up my NERDTree config in the .vimrc so that every time that I open a directory NERDTree will also open but it ...
2
votes
2answers
178 views

Disable cursorline when leaving NERD tree window

I want to disable cursorline when leaving the NERD tree window and enable it when entering the window again. The following setting works fine when using <C-w>w or similar, but not when <CR&...
1
vote
1answer
109 views

Prevent nerdtree from rebinding <cr>

I use <bs> for scrolling up half a page and <cr> for scrolling down: I'd like the same keybindings to be available in NerdTree. It seems that o and <cr> are equivalent in file-mode ...
1
vote
1answer
740 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 ...
1
vote
1answer
141 views

Change the powerline name for nerdtree

How do I change the name of Nerdtree tab in the powerline where it displays filename Rightnow it displays it as ~/dir/dir/NERD_tree_1 I just want it to be displayed Nerd Tree
0
votes
0answers
67 views

NerdTree(Tabs) related errors whenever opening quickfix window

It's my first time using Vim, and I've been playing around with it for a couple of days. Just now I realized that whenever I open the quickfix window, a list of errors appear. Apparently they're ...
4
votes
2answers
208 views

Close all windows except the current one and NERDTree

I know about :only and Ctrl+wo. But I want to keep NERDTree window untouched. Is there a way to achieve it?
0
votes
1answer
49 views

How to reassign a keybinding to a function

I'm using the byobu terminal so the keys F2, F3, and F4 (and others) are for the byobu commands. In my .vimrc I have the following: silent! nmap <C-p> :NERDTreeToggle<CR> silent! map <...
0
votes
2answers
251 views

How to change NERDTree plugin window continuously

So, for example in tmux you can hold Ctrl+b and move the separation line with the arrow keys. Is there any way to do this with NERDTree without using a longer, somewhat discrete command every time?
1
vote
0answers
190 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?
0
votes
1answer
285 views

Open vim with nerdtree if its open from inside a particular directory

I have the following lines in my vimrc: autocmd VimEnter * NERDTree autocmd VimEnter * wincmd p As a result the nerdtree plugin always opens when I load vim. How can I change the behaviour to load ...
4
votes
2answers
1k views

make nerdtree buffer consistent

I like how nerdtree looks as a side-drawer. but if I close current buffer using :bd nerdtree will become a fullscreen buffer and all new buffers will simply take full screen, nerdtree won't toggle ...
0
votes
0answers
240 views

Syntastic + nerdtree-git-plugin: IOError: [Errno 2] No such file or directory: 'NERD_tree_1'

Using Syntastic + nerdtree-git-plugin, I don't get syntax errors displayed. Instead, I get this error: NERDTree: Refreshing the root node. This could take a while... DONE syntastic: error: checker ...
2
votes
0answers
564 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 ...
6
votes
1answer
301 views

Start NERDTree when gVim starts empty

I'd like to have NERDTree shown everytime I start gvim empty, that is without passing any argument to it, starting simply to load files rather than to create a new one, such as just by issuing gvim (...
1
vote
1answer
1k views

How can I install NERDTree without pathogen?

I have only one plugin at the moment (CtrlP) and I don't want to polute my environment with additional stuff that I'll have to depend on. So I tried installing NERDTree directly (cloned from git in ....
1
vote
2answers
722 views

map a key to open Tagbar and NERDTree at the same time

I want to be editing a file like this: --------------- | | | | | DOC | | | | | | | --------------- And then press F5 and open ...
1
vote
1answer
308 views

Suppress warning in vim startup: NERDTree: Please wait, caching a large dir … Press Enter

I have set my .vimrc to open NERDTree on startup and whenever I open vim at the default location (~) I get this warning prompt: NERDTree: Please wait, caching a large dir ... DONE (134 nodes cached). ...
0
votes
1answer
203 views

How to execute xdg-open from NERDTree in Linux?

Netrw able to execute file with xdg-open by pressing x, how about NERDTree ? [Response to downvote] If xdg-open can so easy/direct to work (which is the reason of downvote), then what's the point ...
8
votes
5answers
947 views

Stop CtrlP from opening in NERDTree

I use both CtrlP and NERDTree in my Vim. When I open a file using the CtrlP search feature, it sometimes opens in the NERDTree window (and always if the NERD window is the active one). How can I stop ...
7
votes
4answers
8k views

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

Sometimes during my workflow, I might want to open/search for a file on the go. I'd like to map a single key (say F6) to open and close NERDTree (ie. I want to toggle NERDTree view). Also, I'd like ...
1
vote
2answers
281 views

A side pane file explorer that can list files by modification dates?

I am looking for a way to be able to open a side pane listing the files in the current directories where the listing is sorted by modification dates. I want to be able to open the files from the ...
1
vote
1answer
140 views

How to hide NERDTree when vim called with -R option?

I have this in my .vimrc: autocmd VimEnter * if !argc() | NERDTree | se nu | se rnu | endif Also, I have an alias in my .bashrc: alias fv='find "$PWD" -maxdepth 1 | vim -R -' After I run fv in ...
1
vote
0answers
192 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 ...
1
vote
0answers
201 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 ...
1
vote
1answer
76 views

autocmd mark statements causing problems with nerd tree and netrw?

In order to automatically trigger a mark holding the last cursor position when I left a buffer or window, I added these statements to my ~/.vimrc: for more background on why I wanted to add these ...
4
votes
1answer
344 views

sourcing .vimrc file put square brackets around file icons

Whenever I try to source ~/.vimrc file when NERDTree is open, I get square brackets around the file icons like so: Is there a way to get rid of them? Is it a bug? I have already posted this ...
1
vote
0answers
94 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 ...
0
votes
0answers
30 views

How can I tell NERDTree to open a file in the current window, even if its open somewhere else? [duplicate]

If I have file foo.txt open in a tab tab1 +------------+------------+ | | | | | | | file: | file: | | foo.txt | bar.txt | | | ...
1
vote
0answers
97 views

vim-nerdtree-tabs panel randomly shrinks [closed]

When I start my Vim session, nerdtree-tabs panel looks right. I reveal and hide it frequently via NERDTreeTabsToggle. But after a while it starts to shrink horizontally, to the point where it becomes ...
8
votes
1answer
168 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 ...
1
vote
0answers
191 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:...
17
votes
1answer
21k views

How to install NERDTree with Vundle?

I'm starting to use Vim and I chose Vundle instead of Pathogen. I would like to know if I can install the NERDTree using Vundle. I'm starting Vim and searching for NERDTree like this: :BundleSearch ...
5
votes
1answer
501 views

Problems with paths that includes swedish characters

Update I've now also tried this on my Arch setup and everything works fine there. vim --version on that machine says: VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Sep 28 2015 08:49:36) Included ...
1
vote
1answer
269 views

How can I close all NERTree buffers

When inside a session, I often end up with multiple tabs containing multiple split buffers and multiple "instances" of NerdTree buffers. Is there a command to close all NerdTree buffers in the ...
5
votes
1answer
626 views

Why `NERDTree` doesn't trigger the autocommand `BufEnter`?

I am writing a vimscript function which should keep in a consistent state a "home made buffer manager". The idea is that I want to keep a trace of my buffers in the tabs they were open in. This "...
2
votes
2answers
698 views

navigate within nerdtree

I wonder how folks navigate efficiently with in a nerdtree window, for example if I'm in a folder like this: ├── m1.py ├── m1.pyc ├── m2.py ├── m2.py.bak ├── m2.pyc ├── main.py ├── matplotdemo.py ├── ...
-1
votes
1answer
5k views

cannot install NerdTree pluging with Vundle [closed]

I recently start using Vundle as plugin manager. It nicely installed all my plugins, except NerdTree. when trying to install Plugin 'scroolosse/nerdTree' vundle tries to connect to github, thru ...