All Questions

Tagged with
Filter by
Sorted by
Tagged with
428 votes
2 answers
90k views

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? ...
Daniel's user avatar
  • 16.1k
272 votes
13 answers
140k views

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: ...
Nikita Fedyashev's user avatar
250 votes
5 answers
67k views

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's user avatar
  • 6,264
242 votes
2 answers
83k views

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 ...
James Fassett's user avatar
197 votes
2 answers
26k views

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's user avatar
  • 46.7k
188 votes
7 answers
149k views

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 ...
wesbos's user avatar
  • 26.1k
160 votes
2 answers
34k views

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 ...
Nick Vanderbilt's user avatar
129 votes
6 answers
81k views

How to add NERDTree to your .vimrc

How do I add NERDTree to my .vimrc?
chutsu's user avatar
  • 13.8k
125 votes
6 answers
37k views

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's user avatar
  • 4,784
122 votes
10 answers
92k views

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's user avatar
  • 37.5k
110 votes
2 answers
34k views

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?
wyc's user avatar
  • 54.4k
92 votes
4 answers
54k views

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's user avatar
  • 12.3k
70 votes
6 answers
42k views

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 ...
Toress's user avatar
  • 1,011
66 votes
7 answers
51k views

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's user avatar
  • 2,587
61 votes
5 answers
24k views

Automatically quit vim if NERDTree is last and only buffer

I have the following in my .vimrc: """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Open NERDTree by default """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" autocmd ...
user avatar
56 votes
1 answer
29k views

NERDTree - how to delete file

How to delete a file with NERDTree? I have put this into my .vimrc file: set modifiable but I don't know the command to delete!
ale's user avatar
  • 11.8k
55 votes
3 answers
24k views

How to make NERDTree always open on the right side?

NERDTreeToggle always makes it show up on the left side. I'd like to make it show up on the right. Is it possible to do that?
Running Turtle's user avatar
55 votes
3 answers
11k views

How to change tabs order in VIM?

Is there a way to change tabs order in Vim (i.e. change the position of the tabs in the tab bar)? For example, let's say my current tabs are in this order: A | B | C | D But I would like to switch ...
nothing-special-here's user avatar
54 votes
2 answers
14k views

Renaming a file in NERDTREE

Is it possible to rename a file in NERDTree? I know about the m menu but there is no rename option.
Scientist1642's user avatar
46 votes
6 answers
37k views

Create a command shortcut for NERDTree in Vim editor

I'd like to create an abbreviation for NERDTree on the command-line. I find it annoying have to write :NERDTree every time I want to enable it. So I'd like to type :nr or something like that. Is that ...
Jesse's user avatar
  • 1,459
44 votes
7 answers
30k views

Auto-open NERDTree in "EVERY" tab

Is it possible to open NERDTree in every tab with pressing t or T in NERDTree, if yes, How?
tech.kapil's user avatar
44 votes
1 answer
34k views

Two basic questions with NERDTree — switching windows and finding files

I am using vim with NERDTree to develop, but not good at it. I have two questions with NERDTree: How to move cursor between nav window and edit window without mouse? How to go to one special file ...
why's user avatar
  • 24.4k
42 votes
7 answers
25k views

Auto-open NERDTree in vim

Does someone know how to force .vimrc to auto-open NERDTree each time vim is invoked? The operation system is *nix.
varnie's user avatar
  • 2,595
39 votes
4 answers
13k views

How to automatically close NERDTree after a file has been opened?

The file is opened with the 'return' key on the current tab or with the 't' key to open it on a new VIM tab.
Jonathan Maim's user avatar
36 votes
1 answer
6k views

Disable Scrollbar in NERDtree with MacVim

I have been able to fully disable scrollbars in MacVim. However, when I startup NERDtree, NERDtree brings up a scrollbar of its on the left. How can I disable NERDtree's scrollbar? Thank you in ...
Amir Rustamzadeh's user avatar
34 votes
5 answers
10k views

VIM and NERD Tree - closing a buffer properly

Does anyone know how to close a buffer in VIM when using NERDTree without messing up all your windows? NERD Tree normally breaks up your display into two vertical windows (the browser on your left, ...
Daniel's user avatar
  • 16.1k
34 votes
3 answers
10k views

Changing drive letter in NERDtree

I started using NERDtree plugin on a a windows platform. I can't seem to find a way to change the drive letter. Going up all the way on the directory tree doesn't lead to the drive letter. Any ideas? (...
Mosh's user avatar
  • 2,548
30 votes
2 answers
11k views

Vim - NERDTree - how to open a hidden folder (.name) in NERDTree plugin?

I have a hidden folder which name starts with . (dot) I am editing files withing the parent folder but want to be able to access files within the hidden one as well from within NERDTree plugin under ...
Blaise's user avatar
  • 7,378
28 votes
3 answers
12k views

nerdtree auto focus to file when opened in new tab

I am using NerdTree on Linux . I would like to jump from the nerd tree buffer to the file buffer after opening a file in a new tab using 't'. I need to press 'Ctrl+W+W' all the time. Any idea about ...
Sairam's user avatar
  • 2,808
28 votes
3 answers
33k views

How can I do quick searching in NERDTree?

Is it possible to do searching in NERDTree window by the filenames and file content?
yurko's user avatar
  • 632
28 votes
4 answers
21k views

Change root in NERDTree

I tried to change the NERDTree root with :BookmarkToRoot <bookmark> command and with C letter but when I close vim and open vim the root is not changed. Do you know how to change the root ...
xralf's user avatar
  • 3,544
28 votes
8 answers
8k views

Vim, NERDtree not recovered in session restore

When I have a NERDtree panel and I save a Vim session (mksession [filename]), then open the session (vim -S filename), the panel is opened and tagged "NERDtree" but is not populated. If I try ":...
Erez's user avatar
  • 281
26 votes
2 answers
10k views

vim: open NERDTree and move the cursor to the file editing area

I tried following the instruction in FAQ section on NERDTree github site: "Q. How can I open a NERDTree automatically when vim starts up?" "A. Stick this in your vimrc: autocmd vimenter * NERDTree" ...
Bamqf's user avatar
  • 3,502
24 votes
7 answers
13k views

Nerd tree: enter does not open sub dirs

I installed NERDTree via Pathogen on Mac OSX 10.6.8. When I vim a dir, I cannot enter into sub dirs with enter key. Furthermore, the dirs look like this: ?~V? doc/ What's going on?
Calvin Froedge's user avatar
24 votes
1 answer
35k views

How to start VIM with NERD tree opened automatically? [duplicate]

Possible Duplicate: Auto-open NERDTree in “EVERY” tab Is there a way to automatically execute the :NERDTree command when VIM is launched for the first time or configure NERDTree to ...
rubiii's user avatar
  • 6,963
21 votes
2 answers
11k views

VIM - NerdTree command for opening all sub-folders under a folder in NerdTree

In VIM-NerdTree, I press Enter to open a folder but how do I open a folder and all its sub-folders in NerdTree through a single command? I don't want to open any file. I just want all sub-folders to ...
Arpit Rai's user avatar
  • 1,017
21 votes
3 answers
9k views

VIM - NerdTree - Open Bookmarks when VIM is started

I set VIM to open NERDTree whenever VIM is started by doing this: autocmd VimEnter * NERDTree What changes should I make to my vimrc file so that the Bookmarks also open up whenever VIM & ...
Arpit Rai's user avatar
  • 1,017
20 votes
3 answers
20k views

Installing NERDTree on Windows

I'm trying to install NERDTree (the Vim plugin) on Windows 7. I created a .vim directory on my user folder (C:/Users/Username) and extracted the plugin there. I've run :helptags ~.vim\doc and :...
Vitor Py's user avatar
  • 5,155
19 votes
3 answers
8k views

Close vim NERDtree on close of file

I am trying out Vim, installed some plugins, amongst which NERDTree, followed some guides and set up a .vimrc (half of whose content I don't understand — yet). What annoys me, is that if I :wq, vim ...
berkes's user avatar
  • 27.3k
17 votes
2 answers
3k views

Nerdtree - save state of opened directories

A typical workflow for me is opening Vim (MacVim to be precise), doing: :NERDTree <bookmark> then manually opening various subdirectories I want to use. Often it's the same set of directories ...
William Turrell's user avatar
16 votes
2 answers
10k views

Open Nerdtree file in non-adjacent split

Normally I switch over to the Nerdtree file buffer by hitting Ctrl+H twice to move the cursor over to the left edge of the screen. However, this means that when I open files, they are always in the ...
Kevin Burke's user avatar
  • 63.1k
15 votes
4 answers
16k views

Vim NERDTree colors

I want to change default blue color of folders How to set it?
Vyacheslav Loginov's user avatar
15 votes
4 answers
12k views

Vim - helptags not working for NERDtree

I downloaded and manually installed NERDTree from http://www.vim.org/scripts/script.php?script_id=1658 @hits ➜ .vim rvm:(-ruby-1.9.2) ls -laR .: total 28 drwxr-xr-x 6 hitsu hitsu 4096 2012-02-16 ...
nothing-special-here's user avatar
15 votes
2 answers
5k views

Searching with command-T

When I search some file with command-T it often failes to find it because I'm not in the right directory, so I have to change the directory. Is it possible to set that command-T will search first in ...
xralf's user avatar
  • 3,544
15 votes
3 answers
6k views

Copy path file with NERDtree Vim plugin

Is there some way to copy the path of a file in the Vim's NERDtree plugin? Better: is there some plugin to make the same operations the SideBarEnhancements plugin of Sublime Text does?
Tárcio Zemel's user avatar
15 votes
4 answers
6k views

Is there a NERDTree or other project plugin for vim that integrates with git to show the status of files?

I played with Aptana Studio for a while before moving over to VIM, and the only thing I really miss about Aptana Studio is the way that in their project view window your file names showed up a ...
Scott's user avatar
  • 302
14 votes
3 answers
2k views

Is it possible to just view files content when traverse NERDTree?

I can traverse NERDTree, but to see file content I press go, and once opened file's buffer stays open until I explicitely close it. That makes viewing files too uncomfortable. when I traverse ...
zuba's user avatar
  • 1,498
13 votes
2 answers
23k views

NERDTree toggling and keyboard mapping

I have this line in my .vimrc: nmap <silent> <Leader>p :NERDTreeToggle<CR> So what is the hotkey for toggling NERDTree? How do I remap it to CTRL-D? what is the difference ...
fcuk112's user avatar
  • 457
13 votes
2 answers
3k views

Nerdtree ^G before folder and file names OSX terminal vim

There "^G" before names. It happens only when using vim in terminal. It is normal in MacVim. Here's the image I tried export LC_ALL=en_US.utf-8 export LANG="$LC_ALL" but it doesn't work.
Sheng's user avatar
  • 133
13 votes
2 answers
3k views

vim nerdtree files show up with * appended [duplicate]

Possible Duplicate: gVim displays every file with an asterisk on the right (and bold)? I'm using vim with nerdtree plugin for my rails projects and some of the files show up with a * appended to ...
Brand's user avatar
  • 1,691

1
2 3 4 5
8