Questions tagged [nerdtree]

NERD tree is a plugin for the Vim text editor. It allows users to view and navigate the filesystem while editing.

The NERD tree allows you to explore your filesystem and to open files and directories. It presents the filesystem to you in the form of a tree which you manipulate with the keyboard and/or mouse. It also allows you to perform simple filesystem operations.

From: The NERD tree: A tree explorer plugin for navigating the filesystem

385 questions
427
votes
2 answers

vim and NERD Tree extension - adding a file

When using the vim editor with the NERDTree plugin to navigate through the tree of your project, is there an easy way to create a new source code file under the currently highlighted directory? Currently I go into my shell, add the file and then…
Daniel
  • 16,026
  • 18
  • 65
  • 89
266
votes
13 answers

How to jump back to NERDTree from file in tab?

I usually: Choose the needed file. Open it in a tab(t character, by default). But how I can jump back to NERDTree to open one more file in a tab? Temporary solution I use now in my .vimrc file: map :NERDTree /path/to/root/of/my/project But…
BinaryButterfly
  • 18,137
  • 13
  • 50
  • 91
250
votes
5 answers

NERDTree reload new files

If I add a file to the same directory opened in NERDTree, the only way I can see the file added is if I quit vim and start it again . Is there a way I can reload the files in NERDTree?
lesce
  • 6,224
  • 5
  • 29
  • 35
240
votes
2 answers

How can I show hidden files (starting with period) in NERDTree?

How can I make NERDTree show files that begin with an . (period)? I have a file named .hgignore in a project directory. If I browse to that directory using NERDTree, the file is not displayed within the tree. I am using gvim on Windows.
James Fassett
  • 40,306
  • 11
  • 38
  • 43
197
votes
2 answers

How to filter out files by extension in NERDTree?

I would like to *.pyc files not to be shown in NERDTree vim plugin. How to achieve that?
Arnis Lapsa
  • 45,880
  • 29
  • 115
  • 195
184
votes
7 answers

vim "modifiable" is off

I am trying to create a new file with NERDTree. I hit the a key to create a new file and I get the message: E21: Cannot make changes, 'Modifiable' is off I'm using MacVim with Janus (almost out of the box).
wesbos
  • 25,839
  • 30
  • 106
  • 143
160
votes
2 answers

How to create a directory using nerdtree

I have been using NERDTree for a while. Every time I need to create a new directory I need to go to terminal. Is there a quick and easy way to create a directory using NERDTree. I read the doc but could not find anything.
Nick Vanderbilt
  • 36,724
  • 29
  • 83
  • 106
130
votes
6 answers

How to add NERDTree to your .vimrc

How do I add NERDTree to my .vimrc?
chutsu
  • 13,612
  • 19
  • 65
  • 86
123
votes
6 answers

NerdTree - Reveal file in tree

Is there a shortcut which reveal the current file in the NerdTree directory panel. Like TextMate 'Reveal file in Drawer' - Ctrl+Command+R
Akshay Rawat
  • 4,714
  • 5
  • 40
  • 65
119
votes
10 answers

Switching between tabs in NERDTree

I've just started using the NERDTree vim plugin for my project. I can't find the documentation for switching between opened tabs. Can anyone tell me the shortcut key[s] ? Thanks...
Rimian
  • 36,864
  • 16
  • 117
  • 117
110
votes
2 answers

Renaming or copying files and folder using NERDTree on Vim. Is it possible?

I checked the documentation and I couldn't find a way o renaming or copying files and folder using NERDTree. Is it possible?
alexchenco
  • 53,565
  • 76
  • 241
  • 413
90
votes
4 answers

VIM: How can i open a file at right side as vsplit from a left side NerdTree panel?

I installed NerdTree plugin. How can i open a file at right side as vsplit from a left side NerdTree panel ?
cola
  • 12,198
  • 36
  • 105
  • 165
69
votes
6 answers

How to refresh in NERDTree plugin

When I open a file in vim with (Directory A in) NERDTree, it works well. But if I open one more file in another directory (Directory B), it doesn't refresh to show the contents of directory B (While it still shows directory A). Can NERDTree…
Toress
  • 1,001
  • 1
  • 9
  • 12
64
votes
7 answers

How to open a file in new tab by default in NERDTree?

I want a file to be opened in a new tab when I enter or double click it. I know there is t shortcut but I always open a file in a new tab and enter is more confortable for me.
alice
  • 2,547
  • 4
  • 24
  • 30
61
votes
5 answers

Automatically quit vim if NERDTree is last and only buffer

I have the following in my .vimrc: """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Open NERDTree by default """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" autocmd VimEnter * NERDTree autocmd VimEnter * wincmd…
user67416
1
2 3
25 26