Stack Exchange Network

Stack Exchange network consists of 175 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

0
votes
1answer
13 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
37 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 ...
1
vote
0answers
20 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. ...
0
votes
1answer
33 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
43 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
0answers
19 views

Using marks in NERDTree?

I like NERDTree but don't want to use :OpenBookmark and would rather use m and ' shortcuts like in vim. I don't see anything like this in the NERDTree.txt. I want a fast way to jump to important ...
0
votes
0answers
118 views

(Windows 10) Set Vim as Default Text Editor AND use with NERDTree

My answer in https://vi.stackexchange.com/a/18064/19950 shows the current predicament I face, where I used cmd.exe and the following code ftype VimFile="C:\Program Files (x86)\Vim\vim81\gvim.exe" ...
0
votes
1answer
212 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
98 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
2answers
616 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
128 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
148 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
288 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
602 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
183 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 ...
1
vote
0answers
68 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 ...
3
votes
1answer
1k 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
114 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
372 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
309 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&...
3
votes
1answer
198 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
2k 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
205 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
4
votes
2answers
383 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
60 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
419 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
309 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
375 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 ...
5
votes
3answers
2k 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 ...
3
votes
0answers
977 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 ...
7
votes
1answer
455 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 (...
2
votes
1answer
2k 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
1k 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
416 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). ...
1
vote
2answers
301 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
1k 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 ...
13
votes
5answers
17k 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
428 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
159 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
226 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
236 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
82 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
434 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
106 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
99 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
563 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
257 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:...
22
votes
1answer
26k 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
548 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 ...