aboutsummaryrefslogtreecommitdiff
path: root/plugin/nerdtree.vim
diff options
context:
space:
mode:
authorMax Christian Pohle2018-10-22 00:02:58 +0200
committerMax Christian Pohle2018-10-22 20:42:25 +0200
commitf2e01d7e513067ddb57c75f6e38cdcf434946cf8 (patch)
tree4e8448506756d2144db173d01385798840507133 /plugin/nerdtree.vim
parent31f80d9c334e38e486545407ea5eb5f5cbb2f07d (diff)
downloadvim-f2e01d7e513067ddb57c75f6e38cdcf434946cf8.tar.bz2
vim-f2e01d7e513067ddb57c75f6e38cdcf434946cf8.zip
Major refactoring for version 2.0
vim-plug has been removed and replaced with Vims internal bundle mechanism. But I already noticed, that there is also GLVM now and started trying that as well.
Diffstat (limited to 'plugin/nerdtree.vim')
-rw-r--r--plugin/nerdtree.vim25
1 files changed, 25 insertions, 0 deletions
diff --git a/plugin/nerdtree.vim b/plugin/nerdtree.vim
new file mode 100644
index 0000000..b9665fb
--- /dev/null
+++ b/plugin/nerdtree.vim
@@ -0,0 +1,25 @@
1augroup NERDTREE
2 " NERDTree: replaces NetRW, as long as it has so many bugs
3 let NERDTreeIgnore = ['\.aux$', '\.o$']
4 let NERDTreeCascadeSingleChildDir = 0 | " I don't get how one can use <m> to create files in that included directory
5 let NERDTreeChDirMode = 0
6 let NERDTreeHiddenFirst = 1
7 let NERDTreeMinimalUI = 1
8 let NERDTreeShowBookmarks = 1 | " show bookmarks by default (when opening for the first time)
9 let NERDTreeWinSize = 40
10 let NERDTreeQuitOnOpen = 1
11
12 " depending on if NERDTree has the focus:
13 nnoremap <expr>
14 \ <leader><leader>
15 \ bufwinnr("%")==g:NERDTree.GetWinNum() ? ':NERDTreeClose<CR>' : ':NERDTreeFind<CR>'
16 nnoremap <expr>
17 \ <F2>
18 \ bufwinnr("%")==g:NERDTree.GetWinNum() ? '<C-W><C-W>' : ':N<CR>'
19
20 nnoremap <expr>
21 \ <F3>
22 \ bufwinnr("%")==g:NERDTree.GetWinNum() ? '<C-W><C-W>' : ':n<CR>'
23
24 packadd nerdtree
25augroup END
..