Skip to main content
Share Your Experience: Take the 2024 Developer Survey
24 votes

Change current directory using NERDTree

If you're inside the NERDTree buffer you can select the folder and press C to change the NERDTree root directory. Just type :help NERDTreeMenu and go to line 252 typing 252G or 252gg to check it ...
Rafael Berro's user avatar
7 votes

Hide certain files in NERDTree

Hoping this might be helpful as per New NerdTree Documentation. // put this in your .vimrc set wildignore+=*.pyc,*.o,*.obj,*.svn,*.swp,*.class,*.hg,*.DS_Store,*.min.* // Nerdtree config for ...
Priya's user avatar
  • 171
4 votes

Change current directory using NERDTree

Press "t" when the cursor is on the folder, it will switch to a new buffer with the nerdtree in the subfolder you have selected
PapaStone's user avatar
3 votes
Accepted

OS X + Vim: Open Finder for a Folder in NerdTree (Vim)

This is available out-of-the-box with NERDTree now as part of the fs_menu.vim plugin. In fact, this feature only works on the Mac: if has("gui_mac") || has("gui_macvim") || has(&...
joshperry's user avatar
  • 180
3 votes

Vim: How to synchronize NERDTree with current opened tab file path?

Check this cool plugin vim-nerdtree-sync
Nafaa Boutefer's user avatar
3 votes
Accepted

Autorefresh NERDTree

Putting everything together, something like this would do: autocmd BufWritePost * NERDTreeFocus | execute 'normal R' | wincmd p You can add additional autocmd events. However, be aware that above ...
Ingo Karkat's user avatar
  • 23.1k
2 votes
Accepted

Vim NERDTree increases the command line size and doesn't shrink it back

This is an incompatibility between nerdtree and vim 9 and is tracked here. The current workarounds are: let g:NERDTreeMinimalMenu=1 in ~/.vimrc Using this fork
Trent Earl's user avatar
2 votes

Autorefresh NERDTree

Personally I prefer to trigger the refresh automatically when focusing the NERDTree window. This autocommand will do it autocmd BufEnter NERD_tree_* | execute 'normal R'
Patrick's user avatar
  • 121
1 vote

Open file in new buffer in NERDTree?

When you preview the file, the file is added to your buffer list. The current file is in the hidden buffer, you can use ls to see your buffer list. If you want the file in another window, as Ingo-...
nishanth2066's user avatar
1 vote

Vim: How to synchronize NERDTree with current opened tab file path?

I apply both solutions from Change current directory using NERDTree: use cd to set the NERDTree working directory to the current directory and C to set the NERDTree root node to the current directory
Casper Gerritsen's user avatar
1 vote

Can't open folders in Linux nerdtree vim

I'm aware this is old, but I had a similar problem and the variable names seem to have changed. The following fixed the problem for me with vim 8.0.427 and NERDTree 5.0.0: let ...
scottsman's user avatar
1 vote

What could cause strange characters in Vim?

In my case issue was related to locale issue. Solution: Set value: export LC_ALL="en_US.UTF-8" Run vim: vim See details for locale issue here: Cannot set LC_CTYPE to default locale: No such file ...
0x8BADF00D's user avatar
1 vote

What could cause strange characters in Vim?

If your vimrc is changing guicursor, try removing that line. Other variables which seem to cause/prevent these are: set guicursor= in vimrc set t_Co= in vimrc export TERM=xterm-256color in shell
csghone's user avatar
  • 11
1 vote

What could cause strange characters in Vim?

Adding values explicitly, to the next 2 variables in .vimrc (vim config) solved the problem for me: let g:NERDTreeDirArrowExpandable = '▸' let g:NERDTreeDirArrowCollapsible = '▾' These should be ...
Upment's user avatar
  • 111
1 vote

What could cause strange characters in Vim?

My change was to remove boolean negation (character !). Here is a git diff: ~/.vim/plugged/nerdtree/plugin]$ git diff NERD_tree.vim diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index ...
Sergei G's user avatar
  • 143

Only top scored, non community-wiki answers of a minimum length are eligible