nerdtree

Auto-open NERDTree in “EVERY” tab

╄→尐↘猪︶ㄣ 提交于 2019-12-17 07:07:56
问题 Is it possible to open NERDTree in every tab with pressing t or T in NERDTree, if yes, How? 回答1: This is probably not the best way, but if you edit plugin/NERDTree.vim and change this: exec "nnoremap <silent> <buffer> ". g:NERDTreeMapOpenInTab ." :call <SID>openInNewTab(0)<cr>" to this: exec "nnoremap <silent> <buffer> ". g:NERDTreeMapOpenInTab ." :call <SID>openInNewTab(0)<cr>:NERDTree<cr>" it will alter the binding of 't' in the NERDTree view to first open the file and then open NERDTree.

E492: Not an editor command: NERDTree

自作多情 提交于 2019-12-11 19:06:58
问题 When I run vim . to open up a folder I get the following error: Error detected while processing VimEnter Auto commands for "*": E492: Not an editor command: NERDTree . Press ENTER or type command to continue I don't understand where this is coming from since everything was working fine. I then tried adding other plugins and then the error was thrown. However I have NERDTree in my ~/.vimrc file. Here is what the file looks like. """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

How can I jump to the first file starting with a given character in NERDTree

爱⌒轻易说出口 提交于 2019-12-07 16:10:25
问题 Suppose I have the following directory structure in Vim's NERDTree: /some/folder/ |-apples.txt |-bananas.txt |- ... |-mandarins.txt |-mangos.txt |- ... |-strawberry.txt `-watermelon.txt My cursor is on the top directory and I would like to jump to mandarins.txt . How can this be accomplished with as few keystrokes as possible? 回答1: NERDTree window contains a special buffer with filetype=nerdtree . Within this window/buffer, NERDTree remaps your keys. You can still use the /pattern to search

Open NERDTree and Tlist above each other in Vim

折月煮酒 提交于 2019-12-06 07:00:03
问题 I'm looking for a way to (automatically) open NERDTree and Tlist on the left side directly above each other, so that each plugin takes up half of the screen height. I already found this question, in which the answer of Mohammed is kind of what I'm looking for. However, I'm wondering if maybe there is a more direct way of doing this. 回答1: Here's a solution that requires a small edit to the 'taglist.vim' script. I haven't worked out all the potential ramifications, but it seems to work nicely

Vim NERDTree: show only .txt files?

谁都会走 提交于 2019-12-05 23:29:19
问题 Using NERDTree plugin, I want to view only *.txt files. There is a NERDTreeIgnore variable, but I want something like NERDTreeWhitelistFilter . Is there a way to whitelist what I see? 回答1: This is what you want: :let NERDTreeIgnore += ['\(\.txt\)\@<!$[[file]]'] 回答2: I've been playing around with this — it's an interesting problem. Maybe you could try out this regular expression for ignoring files? Edit: talked with my co-worker. Here's the correct regular expression (my original one matched

How can I jump to the first file starting with a given character in NERDTree

落爺英雄遲暮 提交于 2019-12-05 20:59:32
Suppose I have the following directory structure in Vim's NERDTree: /some/folder/ |-apples.txt |-bananas.txt |- ... |-mandarins.txt |-mangos.txt |- ... |-strawberry.txt `-watermelon.txt My cursor is on the top directory and I would like to jump to mandarins.txt . How can this be accomplished with as few keystrokes as possible? NERDTree window contains a special buffer with filetype=nerdtree . Within this window/buffer, NERDTree remaps your keys. You can still use the /pattern to search pattern. Hit Enter on a filename, will open it. You can type /mand , then hit Enter twice. T Zengerink I did

Make NERDtree not be the default window when VIM starts?

梦想与她 提交于 2019-12-05 20:32:16
问题 I just started playing around with NERDtree and VIM and can't figure out how to make NERDtree NOT be the default window when it opens. I'd like to open NERDTree in one pane and the relevant file in another but instead of having the NERDTree tab take focus when it opens, have the file I am editiing by the default focus. I have looked at the github project but the behavior for how to change this isn't obvious to me. Everything else is working perfectly. Is there a configuration that specifies

NERDTree Load Particular Directory Automatically

那年仲夏 提交于 2019-12-05 16:57:31
问题 I'm using gvim in windows.By default nerdtree loads C:\ drive as default.I like to change it to E:\ drive.How to achieve this? Whenever I try to start NERDTree using :NERDTree command, I get this error E492: Not an editor command: NERDTree 回答1: I have the following code in my vimrc file cd ~/documents map <F2> :NERDTreeToggle<CR> " open Nerd Tree in folder of file in active buffer map <Leader>nt :NERDTree %:p:h<CR> The cd command is not NerdTree specific. It just changes the working directory

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

只愿长相守 提交于 2019-12-05 12:46:36
问题 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 different color depending on their status in git (unchanged, changed but not staged, staged, untracked). I know I can just go to terminal and find out, but having it right there in my editor without having to type any commands is really helpful. Does anyone know if a plugin with this functionality

Open NERDTree and Tlist above each other in Vim

醉酒当歌 提交于 2019-12-04 15:42:26
I'm looking for a way to (automatically) open NERDTree and Tlist on the left side directly above each other, so that each plugin takes up half of the screen height. I already found this question , in which the answer of Mohammed is kind of what I'm looking for. However, I'm wondering if maybe there is a more direct way of doing this. Here's a solution that requires a small edit to the 'taglist.vim' script. I haven't worked out all the potential ramifications, but it seems to work nicely so far. Modify the 'Tlist_Window_Create' function in 'taglist.vim' to include the elseif statement shown