You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

211 lines
7.7 KiB
VimL

" ============================================================================
" File: NERD_tree.vim
" Maintainer: Martin Grenfell <martin.grenfell at gmail dot com>
" License: This program is free software. It comes without any warranty,
" to the extent permitted by applicable law. You can redistribute
" it and/or modify it under the terms of the Do What The Fuck You
" Want To Public License, Version 2, as published by Sam Hocevar.
" See http://sam.zoy.org/wtfpl/COPYING for more details.
"
" ============================================================================
"
" SECTION: Script init stuff {{{1
"============================================================
if exists("loaded_nerd_tree")
finish
endif
if v:version < 700
echoerr "NERDTree: this plugin requires vim >= 7. DOWNLOAD IT! You'll thank me later!"
finish
endif
let loaded_nerd_tree = 1
"for line continuation - i.e dont want C in &cpo
let s:old_cpo = &cpo
set cpo&vim
"Function: s:initVariable() function {{{2
"This function is used to initialise a given variable to a given value. The
"variable is only initialised if it does not exist prior
"
"Args:
"var: the name of the var to be initialised
"value: the value to initialise var to
"
"Returns:
"1 if the var is set, 0 otherwise
function! s:initVariable(var, value)
if !exists(a:var)
exec 'let ' . a:var . ' = ' . "'" . substitute(a:value, "'", "''", "g") . "'"
return 1
endif
return 0
endfunction
"SECTION: Init variable calls and other random constants {{{2
call s:initVariable("g:NERDTreeAutoCenter", 1)
call s:initVariable("g:NERDTreeAutoCenterThreshold", 3)
call s:initVariable("g:NERDTreeCaseSensitiveSort", 0)
Squashed 'vim/bundle/nerdtree/' changes from b0bb781fc..4dada8c04 4dada8c04 update version number to 5.0.0 be8f18914 remove some unneeded header comments f486403b6 add license file 024966c7a move changelog out of the main doc, remove credits section e4891632f update changelog 0c13ebc12 remove some old commented code e27ab9c5c fsmenu: use nerdtree#echo* methods instead of reimplementing them 5b7085d9a fs menu: remove unused var assigns adc11983b fs_menu: put the NERDTreeListNode* methods together b19995b14 Merge pull request #382 from PhilRunninger/master 3fb18e739 Switch to upper case DIR /Q, in true DOS fashion f1af61ddf Use the system('DIR /Q...') function to display file info. c60f40137 Merge (p)roperties (for Windows) into the (l)ist menu item. fb030bcb1 Merge pull request #1 from scrooloose/master 47c20c4b6 Merge pull request #378 from Xuyuanp/up/master d38438209 Merge pull request #470 from egalpin/master af13d3965 Merge pull request #488 from hiberabyss/master caca3af21 Merge pull request #496 from evindor/master 3092ddf83 Merge pull request #502 from JESii/master 88104d26a Add ability to list file metadata... 8996ea5bb Fix MacOS detection for menu, fixes #478 34630f392 issue #147: add support to ~ expand in bookmarks 0b44415a3 Merge pull request #486 from Xuyuanp/syntax 43012a621 Merge pull request #484 from PickRelated/master d66370a8e Made NERDTreeFlags contained in NERDTreeExecFile 8c8c79410 Added character escaping to syn match regexes 8c7534bc9 Merge pull request #482 from PickRelated/master dc29ec2db Added global variables for changing default arrows g:NERDTreeDirArrowExpandable g:NERDTreeDirArrowCollapsable 188bd9265 Added global variables for changing default arrows bcf3de4fd Merge pull request #471 from SchDen/patch-1 f5fd12183 Incorrect path to event.vim 37f7a6cbe Update README.markdown 86e2e40af Merge pull request #466 from toiffel/master 93c9726c6 Fixed case-sensitive sorting of tree nodes when 'ignorecase' option is on 96c07746b Merge pull request #453 from WoLpH/patch-1 013c607ba Fixed incompatibility with older Vim versions af85499ed rename 2 sort key related vars 99fa465b5 fix syntax error 008b62f71 Merge pull request #450 from vtsang/master 6018af36b pretty up some FAQ code blocks 2c1ebc37b add an FAQ about highlighting file with certain extensions dfe260d1d doc the path listener API 10261d60a Updated the comment 80e184df5 Refactor code to use getSortKey() and replace regular expression with simple string comparison in tree_dir_node.vim 3fb3fe347 Merge branch 'master' of https://github.com/vtsang/nerdtree 57d5bd773 Speed up sortChildren() by using sorting token This improves the sorting functions from 12 seconds to 0.66 seconds for ~4000 objects 1f2531ec3 Speed up sortChildren() by using sorting token This improves the sorting functions from 12 seconds to 0.66 seconds for ~4000 objects a87b1bf3c Merge branch 'update_reuse_option' 5c2060149 doc NERDTreeAddPathFilter() 76dbc0c8e Merge branch 'add_path_filter_api' da3874cf9 fix a bug when opening files in a new tab 727021221 bugfix for secondary trees occurring when the screen state is saved 64a9579c1 add a path filter API 09e1dbec1 Merge branch 'refactor_autoload' fc4bcb480 remove UI.lolcats()... not sure what the story is there 8b189cb26 move some rendering and cursor moving functions out of autoload b0114d202 move dumpHelp out of autoload 53d2de86e move the closeTree functions out of autoload 0d88ce946 move isTreeOpen() out of autoload 8270b6d71 move nerdtree#getTreeWinNum out of autoload 973c9906f refactor 3 more functions out of the monolithic autoload file 0e87d45e8 update readme to add an FAQ, update the FAQ style and rm the changelog f8499462c Revert "Use different arrow characters for compatibility." 186f817f5 Revert "fix one of the old style arrows" 5cec19365 Merge pull request #411 from xdl/master b3281cc63 fix one of the old style arrows 87b27802b allow control over whether to reuse windows in different tabs 1cbd52aa7 Merge pull request #434 from handcraftedbits/master cd5f1685b Merge pull request #436 from devmanhinton/patch-1 321de6036 Remove NERD_tree.txt typo f6cad7e95 Use different arrow characters for compatibility. 6dfbcd660 Return early if exception was thrown in pathForString 3b98a7fca Merge pull request #403 from gcmt/pretty-cwd ba2604474 Truncate paths at slashes. f8fd2ecce Merge pull request #390 from zhangoose/patch-1 a895a53f1 easier to read one of the FAQ answers 3d421b8ec use the built in fnamemodify() to make a path relative 3ce33f017 fix escaping for `:edit` when renaming files 031ab5267 Merge remote-tracking branch 'origin/master' 5d0626a00 Merge pull request #384 from gastropoda/reopen-after-rename 1c0814622 apply @mixvin's windows path fix at the top of the method instead cd8d87fa5 Fix opening file path, in Windows 2fd0aa3ec Fix reloading renamed file 6ccf83df2 Add menu option to display file/directory properties. 5d1945228 Merge branch 'master' into up/master 8e06723c0 fix #363 a283c0e03 fix #363 4f1e6ecb0 Merge pull request #365 from ifsred/master c4086667e Fix doc map for NERDTreeMapChangeRoot a47c6caf8 Merge pull request #359 from Xuyuanp/up/master 8cd045d0e add refreshDirFlags method to avoid refreshing too many files c2dd75086 move nerdtree#treeExists.* methods into the NERDTree class fd14757c0 add proper events and make the notifier class generic f9a933991 allow plugins to override the default mappings aa831e242 Merge pull request #356 from alvan/patch-2 0c045d85e fix a bug from recent refactoring RE some NERDTreeCWD 2f552e116 add highlighting for flags 579d96a0f remove testing git plugin 9f351de59 Merge branch 'master' into expt_add_path_flags_and_git 1e0d1cbc8 move some more view code into the UI class 98a5d1fca Use event BufLeave instead of BufWinLeave to record screen state to avoid undefined b:NERDTree error 2f59cc208 Merge branch 'master' into expt_add_path_flags_and_git eaa66aaf6 fix the NERDTreeFind command - broken in recent refactoring 864462200 Merge branch 'master' into expt_add_path_flags_and_git 410081a60 Merge pull request #353 from lucascaton/master 1784de15d Updating creator.vim file (this fixes #352) 7f36008e8 Merge branch 'master' of github.com:scrooloose/nerdtree 23dfc6d81 continue breaking down the epic autoload module f982f61e8 continue breaking up the autoload/nerdtree god module 86488b1aa move ui functions out into their own autoload 04d9b2754 add `.refreshFlags()` to path/dir/file objects 3941389f1 fix a retarded bug with FlagSet.clearFlags 32cf3ee62 allow flags to be scoped to a plugin a7428eba3 add proof of concept for path flags API and add git modified flags 3effeb5cb Merge pull request #347 from kelaban/minor-fix-to-readme 04ac39b4b Fixes README for opening vim with no files d162c08fd comment and tweak the <LeftRelease> fix in 24561ad 2a769a726 Merge pull request #298 from buggo/master 0ee888ee1 simplify the <cr> mapping definition 0b551a8ab Merge pull request #346 from shanesmith/master 82cd4f5a9 Fix <CR> not working if active node map is special char such as <Right> b64942a50 uncomment out some needed syntax matching code... fail e954b2e6f trivial highlighting update for consistency e68e12a33 fix highlighting for readonly files b33d6daf0 remove the NERDChristmasTree option abb93879b simplify the syntax matching code slightly 634c23ead Merge branch 'better_symlink_highlighting' into update_highlighting 9d9edd03d separate out syntax matching for Dir Arrows vs old style 9704a38a1 update symlink highlighting 55a8954c4 update the doc/quickhelp for :Bookmark 0b1166ff7 update code in readme to auto-open a tree on startup b2d2cc184 Merge branch 'inkarkat-better-set-filetype' 4b89264df Merge branch 'better-set-filetype' of https://github.com/inkarkat/nerdtree into inkarkat-better-set-filetype 1168f5898 update the NERDTreeCascadeOpenSingleChildDir doc 0928b5b02 Merge pull request #251 from pendulm/master 8189597c0 Merge pull request #266 from staeff/patch-1 9e54c4808 Merge pull request #299 from tophsic/master 3863e6973 Merge pull request #316 from ZeroProbability/master 8b4841315 rename NERDTreeWildIgnore option and refactor the usage of it 186abb84c Merge pull request #303 from amarshall/wildignore 10ba84b1f Merge pull request #308 from igrep/patch-1 a45304832 Merge pull request #295 from DanielleSucher/create_parent_directories_as_needed dd8fe4bf6 Merge pull request #274 from an1zhegorodov/master e9427a9ca Merge pull request #326 from migueldvb/docs 23d2d1984 Merge pull request #331 from jinnko/add-bookmarks-sort-flag 1da289085 Merge pull request #338 from trkoch/spaces-umlauts 47a3a8410 Merge pull request #340 from netj/sort-hidden-first-option 43842e0de Option for mixing dot files when sorting fbab099fa Support space in path when renaming e38d8a834 Add flag to disable/enable bookmark sorting 603e6c74f Use pathogen.vim Helptags command in README file 13b4058f2 Issue 315 - Incorrect buffer deleted on file delete ad4ebaac9 correct invalid reference to MenuController a50c57192 Add option to respect wildignore 4f48af0cb Fix typo 24561ad59 Ugly hack to fix Error 121 when NERDTree is the active window and clicking on the command line below another window. eacd5d72e Create nested parent directories as needed 5b51f9d1b Fix help mistake 2ebe28468 Fixed typo in NERD_tree.txt 6ef67a2d8 Add correspoding close action to cascade open single child dir 60683f1cc Fix typo Casade to Cascade b8cab9bae Set filetype unconditionally and after defining mappings. git-subtree-dir: vim/bundle/nerdtree git-subtree-split: 4dada8c04fba25e788ea1836c82f9c18c1166b44
8 years ago
call s:initVariable("g:NERDTreeSortHiddenFirst", 1)
call s:initVariable("g:NERDTreeChDirMode", 0)
call s:initVariable("g:NERDTreeMinimalUI", 0)
if !exists("g:NERDTreeIgnore")
let g:NERDTreeIgnore = ['\~$']
endif
call s:initVariable("g:NERDTreeBookmarksFile", expand('$HOME') . '/.NERDTreeBookmarks')
Squashed 'vim/bundle/nerdtree/' changes from b0bb781fc..4dada8c04 4dada8c04 update version number to 5.0.0 be8f18914 remove some unneeded header comments f486403b6 add license file 024966c7a move changelog out of the main doc, remove credits section e4891632f update changelog 0c13ebc12 remove some old commented code e27ab9c5c fsmenu: use nerdtree#echo* methods instead of reimplementing them 5b7085d9a fs menu: remove unused var assigns adc11983b fs_menu: put the NERDTreeListNode* methods together b19995b14 Merge pull request #382 from PhilRunninger/master 3fb18e739 Switch to upper case DIR /Q, in true DOS fashion f1af61ddf Use the system('DIR /Q...') function to display file info. c60f40137 Merge (p)roperties (for Windows) into the (l)ist menu item. fb030bcb1 Merge pull request #1 from scrooloose/master 47c20c4b6 Merge pull request #378 from Xuyuanp/up/master d38438209 Merge pull request #470 from egalpin/master af13d3965 Merge pull request #488 from hiberabyss/master caca3af21 Merge pull request #496 from evindor/master 3092ddf83 Merge pull request #502 from JESii/master 88104d26a Add ability to list file metadata... 8996ea5bb Fix MacOS detection for menu, fixes #478 34630f392 issue #147: add support to ~ expand in bookmarks 0b44415a3 Merge pull request #486 from Xuyuanp/syntax 43012a621 Merge pull request #484 from PickRelated/master d66370a8e Made NERDTreeFlags contained in NERDTreeExecFile 8c8c79410 Added character escaping to syn match regexes 8c7534bc9 Merge pull request #482 from PickRelated/master dc29ec2db Added global variables for changing default arrows g:NERDTreeDirArrowExpandable g:NERDTreeDirArrowCollapsable 188bd9265 Added global variables for changing default arrows bcf3de4fd Merge pull request #471 from SchDen/patch-1 f5fd12183 Incorrect path to event.vim 37f7a6cbe Update README.markdown 86e2e40af Merge pull request #466 from toiffel/master 93c9726c6 Fixed case-sensitive sorting of tree nodes when 'ignorecase' option is on 96c07746b Merge pull request #453 from WoLpH/patch-1 013c607ba Fixed incompatibility with older Vim versions af85499ed rename 2 sort key related vars 99fa465b5 fix syntax error 008b62f71 Merge pull request #450 from vtsang/master 6018af36b pretty up some FAQ code blocks 2c1ebc37b add an FAQ about highlighting file with certain extensions dfe260d1d doc the path listener API 10261d60a Updated the comment 80e184df5 Refactor code to use getSortKey() and replace regular expression with simple string comparison in tree_dir_node.vim 3fb3fe347 Merge branch 'master' of https://github.com/vtsang/nerdtree 57d5bd773 Speed up sortChildren() by using sorting token This improves the sorting functions from 12 seconds to 0.66 seconds for ~4000 objects 1f2531ec3 Speed up sortChildren() by using sorting token This improves the sorting functions from 12 seconds to 0.66 seconds for ~4000 objects a87b1bf3c Merge branch 'update_reuse_option' 5c2060149 doc NERDTreeAddPathFilter() 76dbc0c8e Merge branch 'add_path_filter_api' da3874cf9 fix a bug when opening files in a new tab 727021221 bugfix for secondary trees occurring when the screen state is saved 64a9579c1 add a path filter API 09e1dbec1 Merge branch 'refactor_autoload' fc4bcb480 remove UI.lolcats()... not sure what the story is there 8b189cb26 move some rendering and cursor moving functions out of autoload b0114d202 move dumpHelp out of autoload 53d2de86e move the closeTree functions out of autoload 0d88ce946 move isTreeOpen() out of autoload 8270b6d71 move nerdtree#getTreeWinNum out of autoload 973c9906f refactor 3 more functions out of the monolithic autoload file 0e87d45e8 update readme to add an FAQ, update the FAQ style and rm the changelog f8499462c Revert "Use different arrow characters for compatibility." 186f817f5 Revert "fix one of the old style arrows" 5cec19365 Merge pull request #411 from xdl/master b3281cc63 fix one of the old style arrows 87b27802b allow control over whether to reuse windows in different tabs 1cbd52aa7 Merge pull request #434 from handcraftedbits/master cd5f1685b Merge pull request #436 from devmanhinton/patch-1 321de6036 Remove NERD_tree.txt typo f6cad7e95 Use different arrow characters for compatibility. 6dfbcd660 Return early if exception was thrown in pathForString 3b98a7fca Merge pull request #403 from gcmt/pretty-cwd ba2604474 Truncate paths at slashes. f8fd2ecce Merge pull request #390 from zhangoose/patch-1 a895a53f1 easier to read one of the FAQ answers 3d421b8ec use the built in fnamemodify() to make a path relative 3ce33f017 fix escaping for `:edit` when renaming files 031ab5267 Merge remote-tracking branch 'origin/master' 5d0626a00 Merge pull request #384 from gastropoda/reopen-after-rename 1c0814622 apply @mixvin's windows path fix at the top of the method instead cd8d87fa5 Fix opening file path, in Windows 2fd0aa3ec Fix reloading renamed file 6ccf83df2 Add menu option to display file/directory properties. 5d1945228 Merge branch 'master' into up/master 8e06723c0 fix #363 a283c0e03 fix #363 4f1e6ecb0 Merge pull request #365 from ifsred/master c4086667e Fix doc map for NERDTreeMapChangeRoot a47c6caf8 Merge pull request #359 from Xuyuanp/up/master 8cd045d0e add refreshDirFlags method to avoid refreshing too many files c2dd75086 move nerdtree#treeExists.* methods into the NERDTree class fd14757c0 add proper events and make the notifier class generic f9a933991 allow plugins to override the default mappings aa831e242 Merge pull request #356 from alvan/patch-2 0c045d85e fix a bug from recent refactoring RE some NERDTreeCWD 2f552e116 add highlighting for flags 579d96a0f remove testing git plugin 9f351de59 Merge branch 'master' into expt_add_path_flags_and_git 1e0d1cbc8 move some more view code into the UI class 98a5d1fca Use event BufLeave instead of BufWinLeave to record screen state to avoid undefined b:NERDTree error 2f59cc208 Merge branch 'master' into expt_add_path_flags_and_git eaa66aaf6 fix the NERDTreeFind command - broken in recent refactoring 864462200 Merge branch 'master' into expt_add_path_flags_and_git 410081a60 Merge pull request #353 from lucascaton/master 1784de15d Updating creator.vim file (this fixes #352) 7f36008e8 Merge branch 'master' of github.com:scrooloose/nerdtree 23dfc6d81 continue breaking down the epic autoload module f982f61e8 continue breaking up the autoload/nerdtree god module 86488b1aa move ui functions out into their own autoload 04d9b2754 add `.refreshFlags()` to path/dir/file objects 3941389f1 fix a retarded bug with FlagSet.clearFlags 32cf3ee62 allow flags to be scoped to a plugin a7428eba3 add proof of concept for path flags API and add git modified flags 3effeb5cb Merge pull request #347 from kelaban/minor-fix-to-readme 04ac39b4b Fixes README for opening vim with no files d162c08fd comment and tweak the <LeftRelease> fix in 24561ad 2a769a726 Merge pull request #298 from buggo/master 0ee888ee1 simplify the <cr> mapping definition 0b551a8ab Merge pull request #346 from shanesmith/master 82cd4f5a9 Fix <CR> not working if active node map is special char such as <Right> b64942a50 uncomment out some needed syntax matching code... fail e954b2e6f trivial highlighting update for consistency e68e12a33 fix highlighting for readonly files b33d6daf0 remove the NERDChristmasTree option abb93879b simplify the syntax matching code slightly 634c23ead Merge branch 'better_symlink_highlighting' into update_highlighting 9d9edd03d separate out syntax matching for Dir Arrows vs old style 9704a38a1 update symlink highlighting 55a8954c4 update the doc/quickhelp for :Bookmark 0b1166ff7 update code in readme to auto-open a tree on startup b2d2cc184 Merge branch 'inkarkat-better-set-filetype' 4b89264df Merge branch 'better-set-filetype' of https://github.com/inkarkat/nerdtree into inkarkat-better-set-filetype 1168f5898 update the NERDTreeCascadeOpenSingleChildDir doc 0928b5b02 Merge pull request #251 from pendulm/master 8189597c0 Merge pull request #266 from staeff/patch-1 9e54c4808 Merge pull request #299 from tophsic/master 3863e6973 Merge pull request #316 from ZeroProbability/master 8b4841315 rename NERDTreeWildIgnore option and refactor the usage of it 186abb84c Merge pull request #303 from amarshall/wildignore 10ba84b1f Merge pull request #308 from igrep/patch-1 a45304832 Merge pull request #295 from DanielleSucher/create_parent_directories_as_needed dd8fe4bf6 Merge pull request #274 from an1zhegorodov/master e9427a9ca Merge pull request #326 from migueldvb/docs 23d2d1984 Merge pull request #331 from jinnko/add-bookmarks-sort-flag 1da289085 Merge pull request #338 from trkoch/spaces-umlauts 47a3a8410 Merge pull request #340 from netj/sort-hidden-first-option 43842e0de Option for mixing dot files when sorting fbab099fa Support space in path when renaming e38d8a834 Add flag to disable/enable bookmark sorting 603e6c74f Use pathogen.vim Helptags command in README file 13b4058f2 Issue 315 - Incorrect buffer deleted on file delete ad4ebaac9 correct invalid reference to MenuController a50c57192 Add option to respect wildignore 4f48af0cb Fix typo 24561ad59 Ugly hack to fix Error 121 when NERDTree is the active window and clicking on the command line below another window. eacd5d72e Create nested parent directories as needed 5b51f9d1b Fix help mistake 2ebe28468 Fixed typo in NERD_tree.txt 6ef67a2d8 Add correspoding close action to cascade open single child dir 60683f1cc Fix typo Casade to Cascade b8cab9bae Set filetype unconditionally and after defining mappings. git-subtree-dir: vim/bundle/nerdtree git-subtree-split: 4dada8c04fba25e788ea1836c82f9c18c1166b44
8 years ago
call s:initVariable("g:NERDTreeBookmarksSort", 1)
call s:initVariable("g:NERDTreeHighlightCursorline", 1)
call s:initVariable("g:NERDTreeHijackNetrw", 1)
call s:initVariable("g:NERDTreeMouseMode", 1)
call s:initVariable("g:NERDTreeNotificationThreshold", 100)
call s:initVariable("g:NERDTreeQuitOnOpen", 0)
Squashed 'vim/bundle/nerdtree/' changes from b0bb781fc..4dada8c04 4dada8c04 update version number to 5.0.0 be8f18914 remove some unneeded header comments f486403b6 add license file 024966c7a move changelog out of the main doc, remove credits section e4891632f update changelog 0c13ebc12 remove some old commented code e27ab9c5c fsmenu: use nerdtree#echo* methods instead of reimplementing them 5b7085d9a fs menu: remove unused var assigns adc11983b fs_menu: put the NERDTreeListNode* methods together b19995b14 Merge pull request #382 from PhilRunninger/master 3fb18e739 Switch to upper case DIR /Q, in true DOS fashion f1af61ddf Use the system('DIR /Q...') function to display file info. c60f40137 Merge (p)roperties (for Windows) into the (l)ist menu item. fb030bcb1 Merge pull request #1 from scrooloose/master 47c20c4b6 Merge pull request #378 from Xuyuanp/up/master d38438209 Merge pull request #470 from egalpin/master af13d3965 Merge pull request #488 from hiberabyss/master caca3af21 Merge pull request #496 from evindor/master 3092ddf83 Merge pull request #502 from JESii/master 88104d26a Add ability to list file metadata... 8996ea5bb Fix MacOS detection for menu, fixes #478 34630f392 issue #147: add support to ~ expand in bookmarks 0b44415a3 Merge pull request #486 from Xuyuanp/syntax 43012a621 Merge pull request #484 from PickRelated/master d66370a8e Made NERDTreeFlags contained in NERDTreeExecFile 8c8c79410 Added character escaping to syn match regexes 8c7534bc9 Merge pull request #482 from PickRelated/master dc29ec2db Added global variables for changing default arrows g:NERDTreeDirArrowExpandable g:NERDTreeDirArrowCollapsable 188bd9265 Added global variables for changing default arrows bcf3de4fd Merge pull request #471 from SchDen/patch-1 f5fd12183 Incorrect path to event.vim 37f7a6cbe Update README.markdown 86e2e40af Merge pull request #466 from toiffel/master 93c9726c6 Fixed case-sensitive sorting of tree nodes when 'ignorecase' option is on 96c07746b Merge pull request #453 from WoLpH/patch-1 013c607ba Fixed incompatibility with older Vim versions af85499ed rename 2 sort key related vars 99fa465b5 fix syntax error 008b62f71 Merge pull request #450 from vtsang/master 6018af36b pretty up some FAQ code blocks 2c1ebc37b add an FAQ about highlighting file with certain extensions dfe260d1d doc the path listener API 10261d60a Updated the comment 80e184df5 Refactor code to use getSortKey() and replace regular expression with simple string comparison in tree_dir_node.vim 3fb3fe347 Merge branch 'master' of https://github.com/vtsang/nerdtree 57d5bd773 Speed up sortChildren() by using sorting token This improves the sorting functions from 12 seconds to 0.66 seconds for ~4000 objects 1f2531ec3 Speed up sortChildren() by using sorting token This improves the sorting functions from 12 seconds to 0.66 seconds for ~4000 objects a87b1bf3c Merge branch 'update_reuse_option' 5c2060149 doc NERDTreeAddPathFilter() 76dbc0c8e Merge branch 'add_path_filter_api' da3874cf9 fix a bug when opening files in a new tab 727021221 bugfix for secondary trees occurring when the screen state is saved 64a9579c1 add a path filter API 09e1dbec1 Merge branch 'refactor_autoload' fc4bcb480 remove UI.lolcats()... not sure what the story is there 8b189cb26 move some rendering and cursor moving functions out of autoload b0114d202 move dumpHelp out of autoload 53d2de86e move the closeTree functions out of autoload 0d88ce946 move isTreeOpen() out of autoload 8270b6d71 move nerdtree#getTreeWinNum out of autoload 973c9906f refactor 3 more functions out of the monolithic autoload file 0e87d45e8 update readme to add an FAQ, update the FAQ style and rm the changelog f8499462c Revert "Use different arrow characters for compatibility." 186f817f5 Revert "fix one of the old style arrows" 5cec19365 Merge pull request #411 from xdl/master b3281cc63 fix one of the old style arrows 87b27802b allow control over whether to reuse windows in different tabs 1cbd52aa7 Merge pull request #434 from handcraftedbits/master cd5f1685b Merge pull request #436 from devmanhinton/patch-1 321de6036 Remove NERD_tree.txt typo f6cad7e95 Use different arrow characters for compatibility. 6dfbcd660 Return early if exception was thrown in pathForString 3b98a7fca Merge pull request #403 from gcmt/pretty-cwd ba2604474 Truncate paths at slashes. f8fd2ecce Merge pull request #390 from zhangoose/patch-1 a895a53f1 easier to read one of the FAQ answers 3d421b8ec use the built in fnamemodify() to make a path relative 3ce33f017 fix escaping for `:edit` when renaming files 031ab5267 Merge remote-tracking branch 'origin/master' 5d0626a00 Merge pull request #384 from gastropoda/reopen-after-rename 1c0814622 apply @mixvin's windows path fix at the top of the method instead cd8d87fa5 Fix opening file path, in Windows 2fd0aa3ec Fix reloading renamed file 6ccf83df2 Add menu option to display file/directory properties. 5d1945228 Merge branch 'master' into up/master 8e06723c0 fix #363 a283c0e03 fix #363 4f1e6ecb0 Merge pull request #365 from ifsred/master c4086667e Fix doc map for NERDTreeMapChangeRoot a47c6caf8 Merge pull request #359 from Xuyuanp/up/master 8cd045d0e add refreshDirFlags method to avoid refreshing too many files c2dd75086 move nerdtree#treeExists.* methods into the NERDTree class fd14757c0 add proper events and make the notifier class generic f9a933991 allow plugins to override the default mappings aa831e242 Merge pull request #356 from alvan/patch-2 0c045d85e fix a bug from recent refactoring RE some NERDTreeCWD 2f552e116 add highlighting for flags 579d96a0f remove testing git plugin 9f351de59 Merge branch 'master' into expt_add_path_flags_and_git 1e0d1cbc8 move some more view code into the UI class 98a5d1fca Use event BufLeave instead of BufWinLeave to record screen state to avoid undefined b:NERDTree error 2f59cc208 Merge branch 'master' into expt_add_path_flags_and_git eaa66aaf6 fix the NERDTreeFind command - broken in recent refactoring 864462200 Merge branch 'master' into expt_add_path_flags_and_git 410081a60 Merge pull request #353 from lucascaton/master 1784de15d Updating creator.vim file (this fixes #352) 7f36008e8 Merge branch 'master' of github.com:scrooloose/nerdtree 23dfc6d81 continue breaking down the epic autoload module f982f61e8 continue breaking up the autoload/nerdtree god module 86488b1aa move ui functions out into their own autoload 04d9b2754 add `.refreshFlags()` to path/dir/file objects 3941389f1 fix a retarded bug with FlagSet.clearFlags 32cf3ee62 allow flags to be scoped to a plugin a7428eba3 add proof of concept for path flags API and add git modified flags 3effeb5cb Merge pull request #347 from kelaban/minor-fix-to-readme 04ac39b4b Fixes README for opening vim with no files d162c08fd comment and tweak the <LeftRelease> fix in 24561ad 2a769a726 Merge pull request #298 from buggo/master 0ee888ee1 simplify the <cr> mapping definition 0b551a8ab Merge pull request #346 from shanesmith/master 82cd4f5a9 Fix <CR> not working if active node map is special char such as <Right> b64942a50 uncomment out some needed syntax matching code... fail e954b2e6f trivial highlighting update for consistency e68e12a33 fix highlighting for readonly files b33d6daf0 remove the NERDChristmasTree option abb93879b simplify the syntax matching code slightly 634c23ead Merge branch 'better_symlink_highlighting' into update_highlighting 9d9edd03d separate out syntax matching for Dir Arrows vs old style 9704a38a1 update symlink highlighting 55a8954c4 update the doc/quickhelp for :Bookmark 0b1166ff7 update code in readme to auto-open a tree on startup b2d2cc184 Merge branch 'inkarkat-better-set-filetype' 4b89264df Merge branch 'better-set-filetype' of https://github.com/inkarkat/nerdtree into inkarkat-better-set-filetype 1168f5898 update the NERDTreeCascadeOpenSingleChildDir doc 0928b5b02 Merge pull request #251 from pendulm/master 8189597c0 Merge pull request #266 from staeff/patch-1 9e54c4808 Merge pull request #299 from tophsic/master 3863e6973 Merge pull request #316 from ZeroProbability/master 8b4841315 rename NERDTreeWildIgnore option and refactor the usage of it 186abb84c Merge pull request #303 from amarshall/wildignore 10ba84b1f Merge pull request #308 from igrep/patch-1 a45304832 Merge pull request #295 from DanielleSucher/create_parent_directories_as_needed dd8fe4bf6 Merge pull request #274 from an1zhegorodov/master e9427a9ca Merge pull request #326 from migueldvb/docs 23d2d1984 Merge pull request #331 from jinnko/add-bookmarks-sort-flag 1da289085 Merge pull request #338 from trkoch/spaces-umlauts 47a3a8410 Merge pull request #340 from netj/sort-hidden-first-option 43842e0de Option for mixing dot files when sorting fbab099fa Support space in path when renaming e38d8a834 Add flag to disable/enable bookmark sorting 603e6c74f Use pathogen.vim Helptags command in README file 13b4058f2 Issue 315 - Incorrect buffer deleted on file delete ad4ebaac9 correct invalid reference to MenuController a50c57192 Add option to respect wildignore 4f48af0cb Fix typo 24561ad59 Ugly hack to fix Error 121 when NERDTree is the active window and clicking on the command line below another window. eacd5d72e Create nested parent directories as needed 5b51f9d1b Fix help mistake 2ebe28468 Fixed typo in NERD_tree.txt 6ef67a2d8 Add correspoding close action to cascade open single child dir 60683f1cc Fix typo Casade to Cascade b8cab9bae Set filetype unconditionally and after defining mappings. git-subtree-dir: vim/bundle/nerdtree git-subtree-split: 4dada8c04fba25e788ea1836c82f9c18c1166b44
8 years ago
call s:initVariable("g:NERDTreeRespectWildIgnore", 0)
call s:initVariable("g:NERDTreeShowBookmarks", 0)
call s:initVariable("g:NERDTreeShowFiles", 1)
call s:initVariable("g:NERDTreeShowHidden", 0)
call s:initVariable("g:NERDTreeShowLineNumbers", 0)
call s:initVariable("g:NERDTreeSortDirs", 1)
call s:initVariable("g:NERDTreeDirArrows", !nerdtree#runningWindows())
Squashed 'vim/bundle/nerdtree/' changes from b0bb781fc..4dada8c04 4dada8c04 update version number to 5.0.0 be8f18914 remove some unneeded header comments f486403b6 add license file 024966c7a move changelog out of the main doc, remove credits section e4891632f update changelog 0c13ebc12 remove some old commented code e27ab9c5c fsmenu: use nerdtree#echo* methods instead of reimplementing them 5b7085d9a fs menu: remove unused var assigns adc11983b fs_menu: put the NERDTreeListNode* methods together b19995b14 Merge pull request #382 from PhilRunninger/master 3fb18e739 Switch to upper case DIR /Q, in true DOS fashion f1af61ddf Use the system('DIR /Q...') function to display file info. c60f40137 Merge (p)roperties (for Windows) into the (l)ist menu item. fb030bcb1 Merge pull request #1 from scrooloose/master 47c20c4b6 Merge pull request #378 from Xuyuanp/up/master d38438209 Merge pull request #470 from egalpin/master af13d3965 Merge pull request #488 from hiberabyss/master caca3af21 Merge pull request #496 from evindor/master 3092ddf83 Merge pull request #502 from JESii/master 88104d26a Add ability to list file metadata... 8996ea5bb Fix MacOS detection for menu, fixes #478 34630f392 issue #147: add support to ~ expand in bookmarks 0b44415a3 Merge pull request #486 from Xuyuanp/syntax 43012a621 Merge pull request #484 from PickRelated/master d66370a8e Made NERDTreeFlags contained in NERDTreeExecFile 8c8c79410 Added character escaping to syn match regexes 8c7534bc9 Merge pull request #482 from PickRelated/master dc29ec2db Added global variables for changing default arrows g:NERDTreeDirArrowExpandable g:NERDTreeDirArrowCollapsable 188bd9265 Added global variables for changing default arrows bcf3de4fd Merge pull request #471 from SchDen/patch-1 f5fd12183 Incorrect path to event.vim 37f7a6cbe Update README.markdown 86e2e40af Merge pull request #466 from toiffel/master 93c9726c6 Fixed case-sensitive sorting of tree nodes when 'ignorecase' option is on 96c07746b Merge pull request #453 from WoLpH/patch-1 013c607ba Fixed incompatibility with older Vim versions af85499ed rename 2 sort key related vars 99fa465b5 fix syntax error 008b62f71 Merge pull request #450 from vtsang/master 6018af36b pretty up some FAQ code blocks 2c1ebc37b add an FAQ about highlighting file with certain extensions dfe260d1d doc the path listener API 10261d60a Updated the comment 80e184df5 Refactor code to use getSortKey() and replace regular expression with simple string comparison in tree_dir_node.vim 3fb3fe347 Merge branch 'master' of https://github.com/vtsang/nerdtree 57d5bd773 Speed up sortChildren() by using sorting token This improves the sorting functions from 12 seconds to 0.66 seconds for ~4000 objects 1f2531ec3 Speed up sortChildren() by using sorting token This improves the sorting functions from 12 seconds to 0.66 seconds for ~4000 objects a87b1bf3c Merge branch 'update_reuse_option' 5c2060149 doc NERDTreeAddPathFilter() 76dbc0c8e Merge branch 'add_path_filter_api' da3874cf9 fix a bug when opening files in a new tab 727021221 bugfix for secondary trees occurring when the screen state is saved 64a9579c1 add a path filter API 09e1dbec1 Merge branch 'refactor_autoload' fc4bcb480 remove UI.lolcats()... not sure what the story is there 8b189cb26 move some rendering and cursor moving functions out of autoload b0114d202 move dumpHelp out of autoload 53d2de86e move the closeTree functions out of autoload 0d88ce946 move isTreeOpen() out of autoload 8270b6d71 move nerdtree#getTreeWinNum out of autoload 973c9906f refactor 3 more functions out of the monolithic autoload file 0e87d45e8 update readme to add an FAQ, update the FAQ style and rm the changelog f8499462c Revert "Use different arrow characters for compatibility." 186f817f5 Revert "fix one of the old style arrows" 5cec19365 Merge pull request #411 from xdl/master b3281cc63 fix one of the old style arrows 87b27802b allow control over whether to reuse windows in different tabs 1cbd52aa7 Merge pull request #434 from handcraftedbits/master cd5f1685b Merge pull request #436 from devmanhinton/patch-1 321de6036 Remove NERD_tree.txt typo f6cad7e95 Use different arrow characters for compatibility. 6dfbcd660 Return early if exception was thrown in pathForString 3b98a7fca Merge pull request #403 from gcmt/pretty-cwd ba2604474 Truncate paths at slashes. f8fd2ecce Merge pull request #390 from zhangoose/patch-1 a895a53f1 easier to read one of the FAQ answers 3d421b8ec use the built in fnamemodify() to make a path relative 3ce33f017 fix escaping for `:edit` when renaming files 031ab5267 Merge remote-tracking branch 'origin/master' 5d0626a00 Merge pull request #384 from gastropoda/reopen-after-rename 1c0814622 apply @mixvin's windows path fix at the top of the method instead cd8d87fa5 Fix opening file path, in Windows 2fd0aa3ec Fix reloading renamed file 6ccf83df2 Add menu option to display file/directory properties. 5d1945228 Merge branch 'master' into up/master 8e06723c0 fix #363 a283c0e03 fix #363 4f1e6ecb0 Merge pull request #365 from ifsred/master c4086667e Fix doc map for NERDTreeMapChangeRoot a47c6caf8 Merge pull request #359 from Xuyuanp/up/master 8cd045d0e add refreshDirFlags method to avoid refreshing too many files c2dd75086 move nerdtree#treeExists.* methods into the NERDTree class fd14757c0 add proper events and make the notifier class generic f9a933991 allow plugins to override the default mappings aa831e242 Merge pull request #356 from alvan/patch-2 0c045d85e fix a bug from recent refactoring RE some NERDTreeCWD 2f552e116 add highlighting for flags 579d96a0f remove testing git plugin 9f351de59 Merge branch 'master' into expt_add_path_flags_and_git 1e0d1cbc8 move some more view code into the UI class 98a5d1fca Use event BufLeave instead of BufWinLeave to record screen state to avoid undefined b:NERDTree error 2f59cc208 Merge branch 'master' into expt_add_path_flags_and_git eaa66aaf6 fix the NERDTreeFind command - broken in recent refactoring 864462200 Merge branch 'master' into expt_add_path_flags_and_git 410081a60 Merge pull request #353 from lucascaton/master 1784de15d Updating creator.vim file (this fixes #352) 7f36008e8 Merge branch 'master' of github.com:scrooloose/nerdtree 23dfc6d81 continue breaking down the epic autoload module f982f61e8 continue breaking up the autoload/nerdtree god module 86488b1aa move ui functions out into their own autoload 04d9b2754 add `.refreshFlags()` to path/dir/file objects 3941389f1 fix a retarded bug with FlagSet.clearFlags 32cf3ee62 allow flags to be scoped to a plugin a7428eba3 add proof of concept for path flags API and add git modified flags 3effeb5cb Merge pull request #347 from kelaban/minor-fix-to-readme 04ac39b4b Fixes README for opening vim with no files d162c08fd comment and tweak the <LeftRelease> fix in 24561ad 2a769a726 Merge pull request #298 from buggo/master 0ee888ee1 simplify the <cr> mapping definition 0b551a8ab Merge pull request #346 from shanesmith/master 82cd4f5a9 Fix <CR> not working if active node map is special char such as <Right> b64942a50 uncomment out some needed syntax matching code... fail e954b2e6f trivial highlighting update for consistency e68e12a33 fix highlighting for readonly files b33d6daf0 remove the NERDChristmasTree option abb93879b simplify the syntax matching code slightly 634c23ead Merge branch 'better_symlink_highlighting' into update_highlighting 9d9edd03d separate out syntax matching for Dir Arrows vs old style 9704a38a1 update symlink highlighting 55a8954c4 update the doc/quickhelp for :Bookmark 0b1166ff7 update code in readme to auto-open a tree on startup b2d2cc184 Merge branch 'inkarkat-better-set-filetype' 4b89264df Merge branch 'better-set-filetype' of https://github.com/inkarkat/nerdtree into inkarkat-better-set-filetype 1168f5898 update the NERDTreeCascadeOpenSingleChildDir doc 0928b5b02 Merge pull request #251 from pendulm/master 8189597c0 Merge pull request #266 from staeff/patch-1 9e54c4808 Merge pull request #299 from tophsic/master 3863e6973 Merge pull request #316 from ZeroProbability/master 8b4841315 rename NERDTreeWildIgnore option and refactor the usage of it 186abb84c Merge pull request #303 from amarshall/wildignore 10ba84b1f Merge pull request #308 from igrep/patch-1 a45304832 Merge pull request #295 from DanielleSucher/create_parent_directories_as_needed dd8fe4bf6 Merge pull request #274 from an1zhegorodov/master e9427a9ca Merge pull request #326 from migueldvb/docs 23d2d1984 Merge pull request #331 from jinnko/add-bookmarks-sort-flag 1da289085 Merge pull request #338 from trkoch/spaces-umlauts 47a3a8410 Merge pull request #340 from netj/sort-hidden-first-option 43842e0de Option for mixing dot files when sorting fbab099fa Support space in path when renaming e38d8a834 Add flag to disable/enable bookmark sorting 603e6c74f Use pathogen.vim Helptags command in README file 13b4058f2 Issue 315 - Incorrect buffer deleted on file delete ad4ebaac9 correct invalid reference to MenuController a50c57192 Add option to respect wildignore 4f48af0cb Fix typo 24561ad59 Ugly hack to fix Error 121 when NERDTree is the active window and clicking on the command line below another window. eacd5d72e Create nested parent directories as needed 5b51f9d1b Fix help mistake 2ebe28468 Fixed typo in NERD_tree.txt 6ef67a2d8 Add correspoding close action to cascade open single child dir 60683f1cc Fix typo Casade to Cascade b8cab9bae Set filetype unconditionally and after defining mappings. git-subtree-dir: vim/bundle/nerdtree git-subtree-split: 4dada8c04fba25e788ea1836c82f9c18c1166b44
8 years ago
call s:initVariable("g:NERDTreeDirArrowExpandable", "▸")
call s:initVariable("g:NERDTreeDirArrowCollapsible", "▾")
call s:initVariable("g:NERDTreeCascadeOpenSingleChildDir", 1)
if !exists("g:NERDTreeSortOrder")
let g:NERDTreeSortOrder = ['\/$', '*', '\.swp$', '\.bak$', '\~$']
else
"if there isnt a * in the sort sequence then add one
if count(g:NERDTreeSortOrder, '*') < 1
call add(g:NERDTreeSortOrder, '*')
endif
endif
if !exists('g:NERDTreeStatusline')
"the exists() crap here is a hack to stop vim spazzing out when
"loading a session that was created with an open nerd tree. It spazzes
"because it doesnt store b:NERDTreeRoot (its a b: var, and its a hash)
let g:NERDTreeStatusline = "%{exists('b:NERDTreeRoot')?b:NERDTreeRoot.path.str():''}"
endif
call s:initVariable("g:NERDTreeWinPos", "left")
call s:initVariable("g:NERDTreeWinSize", 31)
"init the shell commands that will be used to copy nodes, and remove dir trees
"
"Note: the space after the command is important
if nerdtree#runningWindows()
call s:initVariable("g:NERDTreeRemoveDirCmd", 'rmdir /s /q ')
else
call s:initVariable("g:NERDTreeRemoveDirCmd", 'rm -rf ')
call s:initVariable("g:NERDTreeCopyCmd", 'cp -r ')
endif
"SECTION: Init variable calls for key mappings {{{2
call s:initVariable("g:NERDTreeMapActivateNode", "o")
call s:initVariable("g:NERDTreeMapChangeRoot", "C")
call s:initVariable("g:NERDTreeMapChdir", "cd")
call s:initVariable("g:NERDTreeMapCloseChildren", "X")
call s:initVariable("g:NERDTreeMapCloseDir", "x")
call s:initVariable("g:NERDTreeMapDeleteBookmark", "D")
call s:initVariable("g:NERDTreeMapMenu", "m")
call s:initVariable("g:NERDTreeMapHelp", "?")
call s:initVariable("g:NERDTreeMapJumpFirstChild", "K")
call s:initVariable("g:NERDTreeMapJumpLastChild", "J")
call s:initVariable("g:NERDTreeMapJumpNextSibling", "<C-j>")
call s:initVariable("g:NERDTreeMapJumpParent", "p")
call s:initVariable("g:NERDTreeMapJumpPrevSibling", "<C-k>")
call s:initVariable("g:NERDTreeMapJumpRoot", "P")
call s:initVariable("g:NERDTreeMapOpenExpl", "e")
call s:initVariable("g:NERDTreeMapOpenInTab", "t")
call s:initVariable("g:NERDTreeMapOpenInTabSilent", "T")
call s:initVariable("g:NERDTreeMapOpenRecursively", "O")
call s:initVariable("g:NERDTreeMapOpenSplit", "i")
call s:initVariable("g:NERDTreeMapOpenVSplit", "s")
call s:initVariable("g:NERDTreeMapPreview", "g" . NERDTreeMapActivateNode)
call s:initVariable("g:NERDTreeMapPreviewSplit", "g" . NERDTreeMapOpenSplit)
call s:initVariable("g:NERDTreeMapPreviewVSplit", "g" . NERDTreeMapOpenVSplit)
call s:initVariable("g:NERDTreeMapQuit", "q")
call s:initVariable("g:NERDTreeMapRefresh", "r")
call s:initVariable("g:NERDTreeMapRefreshRoot", "R")
call s:initVariable("g:NERDTreeMapToggleBookmarks", "B")
call s:initVariable("g:NERDTreeMapToggleFiles", "F")
call s:initVariable("g:NERDTreeMapToggleFilters", "f")
call s:initVariable("g:NERDTreeMapToggleHidden", "I")
call s:initVariable("g:NERDTreeMapToggleZoom", "A")
call s:initVariable("g:NERDTreeMapUpdir", "u")
call s:initVariable("g:NERDTreeMapUpdirKeepOpen", "U")
call s:initVariable("g:NERDTreeMapCWD", "CD")
"SECTION: Load class files{{{2
call nerdtree#loadClassFiles()
" SECTION: Commands {{{1
"============================================================
Squashed 'vim/bundle/nerdtree/' changes from b0bb781fc..4dada8c04 4dada8c04 update version number to 5.0.0 be8f18914 remove some unneeded header comments f486403b6 add license file 024966c7a move changelog out of the main doc, remove credits section e4891632f update changelog 0c13ebc12 remove some old commented code e27ab9c5c fsmenu: use nerdtree#echo* methods instead of reimplementing them 5b7085d9a fs menu: remove unused var assigns adc11983b fs_menu: put the NERDTreeListNode* methods together b19995b14 Merge pull request #382 from PhilRunninger/master 3fb18e739 Switch to upper case DIR /Q, in true DOS fashion f1af61ddf Use the system('DIR /Q...') function to display file info. c60f40137 Merge (p)roperties (for Windows) into the (l)ist menu item. fb030bcb1 Merge pull request #1 from scrooloose/master 47c20c4b6 Merge pull request #378 from Xuyuanp/up/master d38438209 Merge pull request #470 from egalpin/master af13d3965 Merge pull request #488 from hiberabyss/master caca3af21 Merge pull request #496 from evindor/master 3092ddf83 Merge pull request #502 from JESii/master 88104d26a Add ability to list file metadata... 8996ea5bb Fix MacOS detection for menu, fixes #478 34630f392 issue #147: add support to ~ expand in bookmarks 0b44415a3 Merge pull request #486 from Xuyuanp/syntax 43012a621 Merge pull request #484 from PickRelated/master d66370a8e Made NERDTreeFlags contained in NERDTreeExecFile 8c8c79410 Added character escaping to syn match regexes 8c7534bc9 Merge pull request #482 from PickRelated/master dc29ec2db Added global variables for changing default arrows g:NERDTreeDirArrowExpandable g:NERDTreeDirArrowCollapsable 188bd9265 Added global variables for changing default arrows bcf3de4fd Merge pull request #471 from SchDen/patch-1 f5fd12183 Incorrect path to event.vim 37f7a6cbe Update README.markdown 86e2e40af Merge pull request #466 from toiffel/master 93c9726c6 Fixed case-sensitive sorting of tree nodes when 'ignorecase' option is on 96c07746b Merge pull request #453 from WoLpH/patch-1 013c607ba Fixed incompatibility with older Vim versions af85499ed rename 2 sort key related vars 99fa465b5 fix syntax error 008b62f71 Merge pull request #450 from vtsang/master 6018af36b pretty up some FAQ code blocks 2c1ebc37b add an FAQ about highlighting file with certain extensions dfe260d1d doc the path listener API 10261d60a Updated the comment 80e184df5 Refactor code to use getSortKey() and replace regular expression with simple string comparison in tree_dir_node.vim 3fb3fe347 Merge branch 'master' of https://github.com/vtsang/nerdtree 57d5bd773 Speed up sortChildren() by using sorting token This improves the sorting functions from 12 seconds to 0.66 seconds for ~4000 objects 1f2531ec3 Speed up sortChildren() by using sorting token This improves the sorting functions from 12 seconds to 0.66 seconds for ~4000 objects a87b1bf3c Merge branch 'update_reuse_option' 5c2060149 doc NERDTreeAddPathFilter() 76dbc0c8e Merge branch 'add_path_filter_api' da3874cf9 fix a bug when opening files in a new tab 727021221 bugfix for secondary trees occurring when the screen state is saved 64a9579c1 add a path filter API 09e1dbec1 Merge branch 'refactor_autoload' fc4bcb480 remove UI.lolcats()... not sure what the story is there 8b189cb26 move some rendering and cursor moving functions out of autoload b0114d202 move dumpHelp out of autoload 53d2de86e move the closeTree functions out of autoload 0d88ce946 move isTreeOpen() out of autoload 8270b6d71 move nerdtree#getTreeWinNum out of autoload 973c9906f refactor 3 more functions out of the monolithic autoload file 0e87d45e8 update readme to add an FAQ, update the FAQ style and rm the changelog f8499462c Revert "Use different arrow characters for compatibility." 186f817f5 Revert "fix one of the old style arrows" 5cec19365 Merge pull request #411 from xdl/master b3281cc63 fix one of the old style arrows 87b27802b allow control over whether to reuse windows in different tabs 1cbd52aa7 Merge pull request #434 from handcraftedbits/master cd5f1685b Merge pull request #436 from devmanhinton/patch-1 321de6036 Remove NERD_tree.txt typo f6cad7e95 Use different arrow characters for compatibility. 6dfbcd660 Return early if exception was thrown in pathForString 3b98a7fca Merge pull request #403 from gcmt/pretty-cwd ba2604474 Truncate paths at slashes. f8fd2ecce Merge pull request #390 from zhangoose/patch-1 a895a53f1 easier to read one of the FAQ answers 3d421b8ec use the built in fnamemodify() to make a path relative 3ce33f017 fix escaping for `:edit` when renaming files 031ab5267 Merge remote-tracking branch 'origin/master' 5d0626a00 Merge pull request #384 from gastropoda/reopen-after-rename 1c0814622 apply @mixvin's windows path fix at the top of the method instead cd8d87fa5 Fix opening file path, in Windows 2fd0aa3ec Fix reloading renamed file 6ccf83df2 Add menu option to display file/directory properties. 5d1945228 Merge branch 'master' into up/master 8e06723c0 fix #363 a283c0e03 fix #363 4f1e6ecb0 Merge pull request #365 from ifsred/master c4086667e Fix doc map for NERDTreeMapChangeRoot a47c6caf8 Merge pull request #359 from Xuyuanp/up/master 8cd045d0e add refreshDirFlags method to avoid refreshing too many files c2dd75086 move nerdtree#treeExists.* methods into the NERDTree class fd14757c0 add proper events and make the notifier class generic f9a933991 allow plugins to override the default mappings aa831e242 Merge pull request #356 from alvan/patch-2 0c045d85e fix a bug from recent refactoring RE some NERDTreeCWD 2f552e116 add highlighting for flags 579d96a0f remove testing git plugin 9f351de59 Merge branch 'master' into expt_add_path_flags_and_git 1e0d1cbc8 move some more view code into the UI class 98a5d1fca Use event BufLeave instead of BufWinLeave to record screen state to avoid undefined b:NERDTree error 2f59cc208 Merge branch 'master' into expt_add_path_flags_and_git eaa66aaf6 fix the NERDTreeFind command - broken in recent refactoring 864462200 Merge branch 'master' into expt_add_path_flags_and_git 410081a60 Merge pull request #353 from lucascaton/master 1784de15d Updating creator.vim file (this fixes #352) 7f36008e8 Merge branch 'master' of github.com:scrooloose/nerdtree 23dfc6d81 continue breaking down the epic autoload module f982f61e8 continue breaking up the autoload/nerdtree god module 86488b1aa move ui functions out into their own autoload 04d9b2754 add `.refreshFlags()` to path/dir/file objects 3941389f1 fix a retarded bug with FlagSet.clearFlags 32cf3ee62 allow flags to be scoped to a plugin a7428eba3 add proof of concept for path flags API and add git modified flags 3effeb5cb Merge pull request #347 from kelaban/minor-fix-to-readme 04ac39b4b Fixes README for opening vim with no files d162c08fd comment and tweak the <LeftRelease> fix in 24561ad 2a769a726 Merge pull request #298 from buggo/master 0ee888ee1 simplify the <cr> mapping definition 0b551a8ab Merge pull request #346 from shanesmith/master 82cd4f5a9 Fix <CR> not working if active node map is special char such as <Right> b64942a50 uncomment out some needed syntax matching code... fail e954b2e6f trivial highlighting update for consistency e68e12a33 fix highlighting for readonly files b33d6daf0 remove the NERDChristmasTree option abb93879b simplify the syntax matching code slightly 634c23ead Merge branch 'better_symlink_highlighting' into update_highlighting 9d9edd03d separate out syntax matching for Dir Arrows vs old style 9704a38a1 update symlink highlighting 55a8954c4 update the doc/quickhelp for :Bookmark 0b1166ff7 update code in readme to auto-open a tree on startup b2d2cc184 Merge branch 'inkarkat-better-set-filetype' 4b89264df Merge branch 'better-set-filetype' of https://github.com/inkarkat/nerdtree into inkarkat-better-set-filetype 1168f5898 update the NERDTreeCascadeOpenSingleChildDir doc 0928b5b02 Merge pull request #251 from pendulm/master 8189597c0 Merge pull request #266 from staeff/patch-1 9e54c4808 Merge pull request #299 from tophsic/master 3863e6973 Merge pull request #316 from ZeroProbability/master 8b4841315 rename NERDTreeWildIgnore option and refactor the usage of it 186abb84c Merge pull request #303 from amarshall/wildignore 10ba84b1f Merge pull request #308 from igrep/patch-1 a45304832 Merge pull request #295 from DanielleSucher/create_parent_directories_as_needed dd8fe4bf6 Merge pull request #274 from an1zhegorodov/master e9427a9ca Merge pull request #326 from migueldvb/docs 23d2d1984 Merge pull request #331 from jinnko/add-bookmarks-sort-flag 1da289085 Merge pull request #338 from trkoch/spaces-umlauts 47a3a8410 Merge pull request #340 from netj/sort-hidden-first-option 43842e0de Option for mixing dot files when sorting fbab099fa Support space in path when renaming e38d8a834 Add flag to disable/enable bookmark sorting 603e6c74f Use pathogen.vim Helptags command in README file 13b4058f2 Issue 315 - Incorrect buffer deleted on file delete ad4ebaac9 correct invalid reference to MenuController a50c57192 Add option to respect wildignore 4f48af0cb Fix typo 24561ad59 Ugly hack to fix Error 121 when NERDTree is the active window and clicking on the command line below another window. eacd5d72e Create nested parent directories as needed 5b51f9d1b Fix help mistake 2ebe28468 Fixed typo in NERD_tree.txt 6ef67a2d8 Add correspoding close action to cascade open single child dir 60683f1cc Fix typo Casade to Cascade b8cab9bae Set filetype unconditionally and after defining mappings. git-subtree-dir: vim/bundle/nerdtree git-subtree-split: 4dada8c04fba25e788ea1836c82f9c18c1166b44
8 years ago
call nerdtree#ui_glue#setupCommands()
" SECTION: Auto commands {{{1
"============================================================
augroup NERDTree
"Save the cursor position whenever we close the nerd tree
Squashed 'vim/bundle/nerdtree/' changes from b0bb781fc..4dada8c04 4dada8c04 update version number to 5.0.0 be8f18914 remove some unneeded header comments f486403b6 add license file 024966c7a move changelog out of the main doc, remove credits section e4891632f update changelog 0c13ebc12 remove some old commented code e27ab9c5c fsmenu: use nerdtree#echo* methods instead of reimplementing them 5b7085d9a fs menu: remove unused var assigns adc11983b fs_menu: put the NERDTreeListNode* methods together b19995b14 Merge pull request #382 from PhilRunninger/master 3fb18e739 Switch to upper case DIR /Q, in true DOS fashion f1af61ddf Use the system('DIR /Q...') function to display file info. c60f40137 Merge (p)roperties (for Windows) into the (l)ist menu item. fb030bcb1 Merge pull request #1 from scrooloose/master 47c20c4b6 Merge pull request #378 from Xuyuanp/up/master d38438209 Merge pull request #470 from egalpin/master af13d3965 Merge pull request #488 from hiberabyss/master caca3af21 Merge pull request #496 from evindor/master 3092ddf83 Merge pull request #502 from JESii/master 88104d26a Add ability to list file metadata... 8996ea5bb Fix MacOS detection for menu, fixes #478 34630f392 issue #147: add support to ~ expand in bookmarks 0b44415a3 Merge pull request #486 from Xuyuanp/syntax 43012a621 Merge pull request #484 from PickRelated/master d66370a8e Made NERDTreeFlags contained in NERDTreeExecFile 8c8c79410 Added character escaping to syn match regexes 8c7534bc9 Merge pull request #482 from PickRelated/master dc29ec2db Added global variables for changing default arrows g:NERDTreeDirArrowExpandable g:NERDTreeDirArrowCollapsable 188bd9265 Added global variables for changing default arrows bcf3de4fd Merge pull request #471 from SchDen/patch-1 f5fd12183 Incorrect path to event.vim 37f7a6cbe Update README.markdown 86e2e40af Merge pull request #466 from toiffel/master 93c9726c6 Fixed case-sensitive sorting of tree nodes when 'ignorecase' option is on 96c07746b Merge pull request #453 from WoLpH/patch-1 013c607ba Fixed incompatibility with older Vim versions af85499ed rename 2 sort key related vars 99fa465b5 fix syntax error 008b62f71 Merge pull request #450 from vtsang/master 6018af36b pretty up some FAQ code blocks 2c1ebc37b add an FAQ about highlighting file with certain extensions dfe260d1d doc the path listener API 10261d60a Updated the comment 80e184df5 Refactor code to use getSortKey() and replace regular expression with simple string comparison in tree_dir_node.vim 3fb3fe347 Merge branch 'master' of https://github.com/vtsang/nerdtree 57d5bd773 Speed up sortChildren() by using sorting token This improves the sorting functions from 12 seconds to 0.66 seconds for ~4000 objects 1f2531ec3 Speed up sortChildren() by using sorting token This improves the sorting functions from 12 seconds to 0.66 seconds for ~4000 objects a87b1bf3c Merge branch 'update_reuse_option' 5c2060149 doc NERDTreeAddPathFilter() 76dbc0c8e Merge branch 'add_path_filter_api' da3874cf9 fix a bug when opening files in a new tab 727021221 bugfix for secondary trees occurring when the screen state is saved 64a9579c1 add a path filter API 09e1dbec1 Merge branch 'refactor_autoload' fc4bcb480 remove UI.lolcats()... not sure what the story is there 8b189cb26 move some rendering and cursor moving functions out of autoload b0114d202 move dumpHelp out of autoload 53d2de86e move the closeTree functions out of autoload 0d88ce946 move isTreeOpen() out of autoload 8270b6d71 move nerdtree#getTreeWinNum out of autoload 973c9906f refactor 3 more functions out of the monolithic autoload file 0e87d45e8 update readme to add an FAQ, update the FAQ style and rm the changelog f8499462c Revert "Use different arrow characters for compatibility." 186f817f5 Revert "fix one of the old style arrows" 5cec19365 Merge pull request #411 from xdl/master b3281cc63 fix one of the old style arrows 87b27802b allow control over whether to reuse windows in different tabs 1cbd52aa7 Merge pull request #434 from handcraftedbits/master cd5f1685b Merge pull request #436 from devmanhinton/patch-1 321de6036 Remove NERD_tree.txt typo f6cad7e95 Use different arrow characters for compatibility. 6dfbcd660 Return early if exception was thrown in pathForString 3b98a7fca Merge pull request #403 from gcmt/pretty-cwd ba2604474 Truncate paths at slashes. f8fd2ecce Merge pull request #390 from zhangoose/patch-1 a895a53f1 easier to read one of the FAQ answers 3d421b8ec use the built in fnamemodify() to make a path relative 3ce33f017 fix escaping for `:edit` when renaming files 031ab5267 Merge remote-tracking branch 'origin/master' 5d0626a00 Merge pull request #384 from gastropoda/reopen-after-rename 1c0814622 apply @mixvin's windows path fix at the top of the method instead cd8d87fa5 Fix opening file path, in Windows 2fd0aa3ec Fix reloading renamed file 6ccf83df2 Add menu option to display file/directory properties. 5d1945228 Merge branch 'master' into up/master 8e06723c0 fix #363 a283c0e03 fix #363 4f1e6ecb0 Merge pull request #365 from ifsred/master c4086667e Fix doc map for NERDTreeMapChangeRoot a47c6caf8 Merge pull request #359 from Xuyuanp/up/master 8cd045d0e add refreshDirFlags method to avoid refreshing too many files c2dd75086 move nerdtree#treeExists.* methods into the NERDTree class fd14757c0 add proper events and make the notifier class generic f9a933991 allow plugins to override the default mappings aa831e242 Merge pull request #356 from alvan/patch-2 0c045d85e fix a bug from recent refactoring RE some NERDTreeCWD 2f552e116 add highlighting for flags 579d96a0f remove testing git plugin 9f351de59 Merge branch 'master' into expt_add_path_flags_and_git 1e0d1cbc8 move some more view code into the UI class 98a5d1fca Use event BufLeave instead of BufWinLeave to record screen state to avoid undefined b:NERDTree error 2f59cc208 Merge branch 'master' into expt_add_path_flags_and_git eaa66aaf6 fix the NERDTreeFind command - broken in recent refactoring 864462200 Merge branch 'master' into expt_add_path_flags_and_git 410081a60 Merge pull request #353 from lucascaton/master 1784de15d Updating creator.vim file (this fixes #352) 7f36008e8 Merge branch 'master' of github.com:scrooloose/nerdtree 23dfc6d81 continue breaking down the epic autoload module f982f61e8 continue breaking up the autoload/nerdtree god module 86488b1aa move ui functions out into their own autoload 04d9b2754 add `.refreshFlags()` to path/dir/file objects 3941389f1 fix a retarded bug with FlagSet.clearFlags 32cf3ee62 allow flags to be scoped to a plugin a7428eba3 add proof of concept for path flags API and add git modified flags 3effeb5cb Merge pull request #347 from kelaban/minor-fix-to-readme 04ac39b4b Fixes README for opening vim with no files d162c08fd comment and tweak the <LeftRelease> fix in 24561ad 2a769a726 Merge pull request #298 from buggo/master 0ee888ee1 simplify the <cr> mapping definition 0b551a8ab Merge pull request #346 from shanesmith/master 82cd4f5a9 Fix <CR> not working if active node map is special char such as <Right> b64942a50 uncomment out some needed syntax matching code... fail e954b2e6f trivial highlighting update for consistency e68e12a33 fix highlighting for readonly files b33d6daf0 remove the NERDChristmasTree option abb93879b simplify the syntax matching code slightly 634c23ead Merge branch 'better_symlink_highlighting' into update_highlighting 9d9edd03d separate out syntax matching for Dir Arrows vs old style 9704a38a1 update symlink highlighting 55a8954c4 update the doc/quickhelp for :Bookmark 0b1166ff7 update code in readme to auto-open a tree on startup b2d2cc184 Merge branch 'inkarkat-better-set-filetype' 4b89264df Merge branch 'better-set-filetype' of https://github.com/inkarkat/nerdtree into inkarkat-better-set-filetype 1168f5898 update the NERDTreeCascadeOpenSingleChildDir doc 0928b5b02 Merge pull request #251 from pendulm/master 8189597c0 Merge pull request #266 from staeff/patch-1 9e54c4808 Merge pull request #299 from tophsic/master 3863e6973 Merge pull request #316 from ZeroProbability/master 8b4841315 rename NERDTreeWildIgnore option and refactor the usage of it 186abb84c Merge pull request #303 from amarshall/wildignore 10ba84b1f Merge pull request #308 from igrep/patch-1 a45304832 Merge pull request #295 from DanielleSucher/create_parent_directories_as_needed dd8fe4bf6 Merge pull request #274 from an1zhegorodov/master e9427a9ca Merge pull request #326 from migueldvb/docs 23d2d1984 Merge pull request #331 from jinnko/add-bookmarks-sort-flag 1da289085 Merge pull request #338 from trkoch/spaces-umlauts 47a3a8410 Merge pull request #340 from netj/sort-hidden-first-option 43842e0de Option for mixing dot files when sorting fbab099fa Support space in path when renaming e38d8a834 Add flag to disable/enable bookmark sorting 603e6c74f Use pathogen.vim Helptags command in README file 13b4058f2 Issue 315 - Incorrect buffer deleted on file delete ad4ebaac9 correct invalid reference to MenuController a50c57192 Add option to respect wildignore 4f48af0cb Fix typo 24561ad59 Ugly hack to fix Error 121 when NERDTree is the active window and clicking on the command line below another window. eacd5d72e Create nested parent directories as needed 5b51f9d1b Fix help mistake 2ebe28468 Fixed typo in NERD_tree.txt 6ef67a2d8 Add correspoding close action to cascade open single child dir 60683f1cc Fix typo Casade to Cascade b8cab9bae Set filetype unconditionally and after defining mappings. git-subtree-dir: vim/bundle/nerdtree git-subtree-split: 4dada8c04fba25e788ea1836c82f9c18c1166b44
8 years ago
exec "autocmd BufLeave ". g:NERDTreeCreator.BufNamePrefix() ."* if g:NERDTree.IsOpen() | call b:NERDTree.ui.saveScreenState() | endif"
"disallow insert mode in the NERDTree
exec "autocmd BufEnter ". g:NERDTreeCreator.BufNamePrefix() ."* stopinsert"
augroup END
if g:NERDTreeHijackNetrw
augroup NERDTreeHijackNetrw
autocmd VimEnter * silent! autocmd! FileExplorer
au BufEnter,VimEnter * call nerdtree#checkForBrowse(expand("<amatch>"))
augroup END
endif
" SECTION: Public API {{{1
"============================================================
function! NERDTreeAddMenuItem(options)
call g:NERDTreeMenuItem.Create(a:options)
endfunction
function! NERDTreeAddMenuSeparator(...)
let opts = a:0 ? a:1 : {}
call g:NERDTreeMenuItem.CreateSeparator(opts)
endfunction
function! NERDTreeAddSubmenu(options)
return g:NERDTreeMenuItem.Create(a:options)
endfunction
function! NERDTreeAddKeyMap(options)
call g:NERDTreeKeyMap.Create(a:options)
endfunction
function! NERDTreeRender()
call nerdtree#renderView()
endfunction
function! NERDTreeFocus()
Squashed 'vim/bundle/nerdtree/' changes from b0bb781fc..4dada8c04 4dada8c04 update version number to 5.0.0 be8f18914 remove some unneeded header comments f486403b6 add license file 024966c7a move changelog out of the main doc, remove credits section e4891632f update changelog 0c13ebc12 remove some old commented code e27ab9c5c fsmenu: use nerdtree#echo* methods instead of reimplementing them 5b7085d9a fs menu: remove unused var assigns adc11983b fs_menu: put the NERDTreeListNode* methods together b19995b14 Merge pull request #382 from PhilRunninger/master 3fb18e739 Switch to upper case DIR /Q, in true DOS fashion f1af61ddf Use the system('DIR /Q...') function to display file info. c60f40137 Merge (p)roperties (for Windows) into the (l)ist menu item. fb030bcb1 Merge pull request #1 from scrooloose/master 47c20c4b6 Merge pull request #378 from Xuyuanp/up/master d38438209 Merge pull request #470 from egalpin/master af13d3965 Merge pull request #488 from hiberabyss/master caca3af21 Merge pull request #496 from evindor/master 3092ddf83 Merge pull request #502 from JESii/master 88104d26a Add ability to list file metadata... 8996ea5bb Fix MacOS detection for menu, fixes #478 34630f392 issue #147: add support to ~ expand in bookmarks 0b44415a3 Merge pull request #486 from Xuyuanp/syntax 43012a621 Merge pull request #484 from PickRelated/master d66370a8e Made NERDTreeFlags contained in NERDTreeExecFile 8c8c79410 Added character escaping to syn match regexes 8c7534bc9 Merge pull request #482 from PickRelated/master dc29ec2db Added global variables for changing default arrows g:NERDTreeDirArrowExpandable g:NERDTreeDirArrowCollapsable 188bd9265 Added global variables for changing default arrows bcf3de4fd Merge pull request #471 from SchDen/patch-1 f5fd12183 Incorrect path to event.vim 37f7a6cbe Update README.markdown 86e2e40af Merge pull request #466 from toiffel/master 93c9726c6 Fixed case-sensitive sorting of tree nodes when 'ignorecase' option is on 96c07746b Merge pull request #453 from WoLpH/patch-1 013c607ba Fixed incompatibility with older Vim versions af85499ed rename 2 sort key related vars 99fa465b5 fix syntax error 008b62f71 Merge pull request #450 from vtsang/master 6018af36b pretty up some FAQ code blocks 2c1ebc37b add an FAQ about highlighting file with certain extensions dfe260d1d doc the path listener API 10261d60a Updated the comment 80e184df5 Refactor code to use getSortKey() and replace regular expression with simple string comparison in tree_dir_node.vim 3fb3fe347 Merge branch 'master' of https://github.com/vtsang/nerdtree 57d5bd773 Speed up sortChildren() by using sorting token This improves the sorting functions from 12 seconds to 0.66 seconds for ~4000 objects 1f2531ec3 Speed up sortChildren() by using sorting token This improves the sorting functions from 12 seconds to 0.66 seconds for ~4000 objects a87b1bf3c Merge branch 'update_reuse_option' 5c2060149 doc NERDTreeAddPathFilter() 76dbc0c8e Merge branch 'add_path_filter_api' da3874cf9 fix a bug when opening files in a new tab 727021221 bugfix for secondary trees occurring when the screen state is saved 64a9579c1 add a path filter API 09e1dbec1 Merge branch 'refactor_autoload' fc4bcb480 remove UI.lolcats()... not sure what the story is there 8b189cb26 move some rendering and cursor moving functions out of autoload b0114d202 move dumpHelp out of autoload 53d2de86e move the closeTree functions out of autoload 0d88ce946 move isTreeOpen() out of autoload 8270b6d71 move nerdtree#getTreeWinNum out of autoload 973c9906f refactor 3 more functions out of the monolithic autoload file 0e87d45e8 update readme to add an FAQ, update the FAQ style and rm the changelog f8499462c Revert "Use different arrow characters for compatibility." 186f817f5 Revert "fix one of the old style arrows" 5cec19365 Merge pull request #411 from xdl/master b3281cc63 fix one of the old style arrows 87b27802b allow control over whether to reuse windows in different tabs 1cbd52aa7 Merge pull request #434 from handcraftedbits/master cd5f1685b Merge pull request #436 from devmanhinton/patch-1 321de6036 Remove NERD_tree.txt typo f6cad7e95 Use different arrow characters for compatibility. 6dfbcd660 Return early if exception was thrown in pathForString 3b98a7fca Merge pull request #403 from gcmt/pretty-cwd ba2604474 Truncate paths at slashes. f8fd2ecce Merge pull request #390 from zhangoose/patch-1 a895a53f1 easier to read one of the FAQ answers 3d421b8ec use the built in fnamemodify() to make a path relative 3ce33f017 fix escaping for `:edit` when renaming files 031ab5267 Merge remote-tracking branch 'origin/master' 5d0626a00 Merge pull request #384 from gastropoda/reopen-after-rename 1c0814622 apply @mixvin's windows path fix at the top of the method instead cd8d87fa5 Fix opening file path, in Windows 2fd0aa3ec Fix reloading renamed file 6ccf83df2 Add menu option to display file/directory properties. 5d1945228 Merge branch 'master' into up/master 8e06723c0 fix #363 a283c0e03 fix #363 4f1e6ecb0 Merge pull request #365 from ifsred/master c4086667e Fix doc map for NERDTreeMapChangeRoot a47c6caf8 Merge pull request #359 from Xuyuanp/up/master 8cd045d0e add refreshDirFlags method to avoid refreshing too many files c2dd75086 move nerdtree#treeExists.* methods into the NERDTree class fd14757c0 add proper events and make the notifier class generic f9a933991 allow plugins to override the default mappings aa831e242 Merge pull request #356 from alvan/patch-2 0c045d85e fix a bug from recent refactoring RE some NERDTreeCWD 2f552e116 add highlighting for flags 579d96a0f remove testing git plugin 9f351de59 Merge branch 'master' into expt_add_path_flags_and_git 1e0d1cbc8 move some more view code into the UI class 98a5d1fca Use event BufLeave instead of BufWinLeave to record screen state to avoid undefined b:NERDTree error 2f59cc208 Merge branch 'master' into expt_add_path_flags_and_git eaa66aaf6 fix the NERDTreeFind command - broken in recent refactoring 864462200 Merge branch 'master' into expt_add_path_flags_and_git 410081a60 Merge pull request #353 from lucascaton/master 1784de15d Updating creator.vim file (this fixes #352) 7f36008e8 Merge branch 'master' of github.com:scrooloose/nerdtree 23dfc6d81 continue breaking down the epic autoload module f982f61e8 continue breaking up the autoload/nerdtree god module 86488b1aa move ui functions out into their own autoload 04d9b2754 add `.refreshFlags()` to path/dir/file objects 3941389f1 fix a retarded bug with FlagSet.clearFlags 32cf3ee62 allow flags to be scoped to a plugin a7428eba3 add proof of concept for path flags API and add git modified flags 3effeb5cb Merge pull request #347 from kelaban/minor-fix-to-readme 04ac39b4b Fixes README for opening vim with no files d162c08fd comment and tweak the <LeftRelease> fix in 24561ad 2a769a726 Merge pull request #298 from buggo/master 0ee888ee1 simplify the <cr> mapping definition 0b551a8ab Merge pull request #346 from shanesmith/master 82cd4f5a9 Fix <CR> not working if active node map is special char such as <Right> b64942a50 uncomment out some needed syntax matching code... fail e954b2e6f trivial highlighting update for consistency e68e12a33 fix highlighting for readonly files b33d6daf0 remove the NERDChristmasTree option abb93879b simplify the syntax matching code slightly 634c23ead Merge branch 'better_symlink_highlighting' into update_highlighting 9d9edd03d separate out syntax matching for Dir Arrows vs old style 9704a38a1 update symlink highlighting 55a8954c4 update the doc/quickhelp for :Bookmark 0b1166ff7 update code in readme to auto-open a tree on startup b2d2cc184 Merge branch 'inkarkat-better-set-filetype' 4b89264df Merge branch 'better-set-filetype' of https://github.com/inkarkat/nerdtree into inkarkat-better-set-filetype 1168f5898 update the NERDTreeCascadeOpenSingleChildDir doc 0928b5b02 Merge pull request #251 from pendulm/master 8189597c0 Merge pull request #266 from staeff/patch-1 9e54c4808 Merge pull request #299 from tophsic/master 3863e6973 Merge pull request #316 from ZeroProbability/master 8b4841315 rename NERDTreeWildIgnore option and refactor the usage of it 186abb84c Merge pull request #303 from amarshall/wildignore 10ba84b1f Merge pull request #308 from igrep/patch-1 a45304832 Merge pull request #295 from DanielleSucher/create_parent_directories_as_needed dd8fe4bf6 Merge pull request #274 from an1zhegorodov/master e9427a9ca Merge pull request #326 from migueldvb/docs 23d2d1984 Merge pull request #331 from jinnko/add-bookmarks-sort-flag 1da289085 Merge pull request #338 from trkoch/spaces-umlauts 47a3a8410 Merge pull request #340 from netj/sort-hidden-first-option 43842e0de Option for mixing dot files when sorting fbab099fa Support space in path when renaming e38d8a834 Add flag to disable/enable bookmark sorting 603e6c74f Use pathogen.vim Helptags command in README file 13b4058f2 Issue 315 - Incorrect buffer deleted on file delete ad4ebaac9 correct invalid reference to MenuController a50c57192 Add option to respect wildignore 4f48af0cb Fix typo 24561ad59 Ugly hack to fix Error 121 when NERDTree is the active window and clicking on the command line below another window. eacd5d72e Create nested parent directories as needed 5b51f9d1b Fix help mistake 2ebe28468 Fixed typo in NERD_tree.txt 6ef67a2d8 Add correspoding close action to cascade open single child dir 60683f1cc Fix typo Casade to Cascade b8cab9bae Set filetype unconditionally and after defining mappings. git-subtree-dir: vim/bundle/nerdtree git-subtree-split: 4dada8c04fba25e788ea1836c82f9c18c1166b44
8 years ago
if g:NERDTree.IsOpen()
call g:NERDTree.CursorToTreeWin()
else
call g:NERDTreeCreator.TogglePrimary("")
endif
endfunction
function! NERDTreeCWD()
call NERDTreeFocus()
Squashed 'vim/bundle/nerdtree/' changes from b0bb781fc..4dada8c04 4dada8c04 update version number to 5.0.0 be8f18914 remove some unneeded header comments f486403b6 add license file 024966c7a move changelog out of the main doc, remove credits section e4891632f update changelog 0c13ebc12 remove some old commented code e27ab9c5c fsmenu: use nerdtree#echo* methods instead of reimplementing them 5b7085d9a fs menu: remove unused var assigns adc11983b fs_menu: put the NERDTreeListNode* methods together b19995b14 Merge pull request #382 from PhilRunninger/master 3fb18e739 Switch to upper case DIR /Q, in true DOS fashion f1af61ddf Use the system('DIR /Q...') function to display file info. c60f40137 Merge (p)roperties (for Windows) into the (l)ist menu item. fb030bcb1 Merge pull request #1 from scrooloose/master 47c20c4b6 Merge pull request #378 from Xuyuanp/up/master d38438209 Merge pull request #470 from egalpin/master af13d3965 Merge pull request #488 from hiberabyss/master caca3af21 Merge pull request #496 from evindor/master 3092ddf83 Merge pull request #502 from JESii/master 88104d26a Add ability to list file metadata... 8996ea5bb Fix MacOS detection for menu, fixes #478 34630f392 issue #147: add support to ~ expand in bookmarks 0b44415a3 Merge pull request #486 from Xuyuanp/syntax 43012a621 Merge pull request #484 from PickRelated/master d66370a8e Made NERDTreeFlags contained in NERDTreeExecFile 8c8c79410 Added character escaping to syn match regexes 8c7534bc9 Merge pull request #482 from PickRelated/master dc29ec2db Added global variables for changing default arrows g:NERDTreeDirArrowExpandable g:NERDTreeDirArrowCollapsable 188bd9265 Added global variables for changing default arrows bcf3de4fd Merge pull request #471 from SchDen/patch-1 f5fd12183 Incorrect path to event.vim 37f7a6cbe Update README.markdown 86e2e40af Merge pull request #466 from toiffel/master 93c9726c6 Fixed case-sensitive sorting of tree nodes when 'ignorecase' option is on 96c07746b Merge pull request #453 from WoLpH/patch-1 013c607ba Fixed incompatibility with older Vim versions af85499ed rename 2 sort key related vars 99fa465b5 fix syntax error 008b62f71 Merge pull request #450 from vtsang/master 6018af36b pretty up some FAQ code blocks 2c1ebc37b add an FAQ about highlighting file with certain extensions dfe260d1d doc the path listener API 10261d60a Updated the comment 80e184df5 Refactor code to use getSortKey() and replace regular expression with simple string comparison in tree_dir_node.vim 3fb3fe347 Merge branch 'master' of https://github.com/vtsang/nerdtree 57d5bd773 Speed up sortChildren() by using sorting token This improves the sorting functions from 12 seconds to 0.66 seconds for ~4000 objects 1f2531ec3 Speed up sortChildren() by using sorting token This improves the sorting functions from 12 seconds to 0.66 seconds for ~4000 objects a87b1bf3c Merge branch 'update_reuse_option' 5c2060149 doc NERDTreeAddPathFilter() 76dbc0c8e Merge branch 'add_path_filter_api' da3874cf9 fix a bug when opening files in a new tab 727021221 bugfix for secondary trees occurring when the screen state is saved 64a9579c1 add a path filter API 09e1dbec1 Merge branch 'refactor_autoload' fc4bcb480 remove UI.lolcats()... not sure what the story is there 8b189cb26 move some rendering and cursor moving functions out of autoload b0114d202 move dumpHelp out of autoload 53d2de86e move the closeTree functions out of autoload 0d88ce946 move isTreeOpen() out of autoload 8270b6d71 move nerdtree#getTreeWinNum out of autoload 973c9906f refactor 3 more functions out of the monolithic autoload file 0e87d45e8 update readme to add an FAQ, update the FAQ style and rm the changelog f8499462c Revert "Use different arrow characters for compatibility." 186f817f5 Revert "fix one of the old style arrows" 5cec19365 Merge pull request #411 from xdl/master b3281cc63 fix one of the old style arrows 87b27802b allow control over whether to reuse windows in different tabs 1cbd52aa7 Merge pull request #434 from handcraftedbits/master cd5f1685b Merge pull request #436 from devmanhinton/patch-1 321de6036 Remove NERD_tree.txt typo f6cad7e95 Use different arrow characters for compatibility. 6dfbcd660 Return early if exception was thrown in pathForString 3b98a7fca Merge pull request #403 from gcmt/pretty-cwd ba2604474 Truncate paths at slashes. f8fd2ecce Merge pull request #390 from zhangoose/patch-1 a895a53f1 easier to read one of the FAQ answers 3d421b8ec use the built in fnamemodify() to make a path relative 3ce33f017 fix escaping for `:edit` when renaming files 031ab5267 Merge remote-tracking branch 'origin/master' 5d0626a00 Merge pull request #384 from gastropoda/reopen-after-rename 1c0814622 apply @mixvin's windows path fix at the top of the method instead cd8d87fa5 Fix opening file path, in Windows 2fd0aa3ec Fix reloading renamed file 6ccf83df2 Add menu option to display file/directory properties. 5d1945228 Merge branch 'master' into up/master 8e06723c0 fix #363 a283c0e03 fix #363 4f1e6ecb0 Merge pull request #365 from ifsred/master c4086667e Fix doc map for NERDTreeMapChangeRoot a47c6caf8 Merge pull request #359 from Xuyuanp/up/master 8cd045d0e add refreshDirFlags method to avoid refreshing too many files c2dd75086 move nerdtree#treeExists.* methods into the NERDTree class fd14757c0 add proper events and make the notifier class generic f9a933991 allow plugins to override the default mappings aa831e242 Merge pull request #356 from alvan/patch-2 0c045d85e fix a bug from recent refactoring RE some NERDTreeCWD 2f552e116 add highlighting for flags 579d96a0f remove testing git plugin 9f351de59 Merge branch 'master' into expt_add_path_flags_and_git 1e0d1cbc8 move some more view code into the UI class 98a5d1fca Use event BufLeave instead of BufWinLeave to record screen state to avoid undefined b:NERDTree error 2f59cc208 Merge branch 'master' into expt_add_path_flags_and_git eaa66aaf6 fix the NERDTreeFind command - broken in recent refactoring 864462200 Merge branch 'master' into expt_add_path_flags_and_git 410081a60 Merge pull request #353 from lucascaton/master 1784de15d Updating creator.vim file (this fixes #352) 7f36008e8 Merge branch 'master' of github.com:scrooloose/nerdtree 23dfc6d81 continue breaking down the epic autoload module f982f61e8 continue breaking up the autoload/nerdtree god module 86488b1aa move ui functions out into their own autoload 04d9b2754 add `.refreshFlags()` to path/dir/file objects 3941389f1 fix a retarded bug with FlagSet.clearFlags 32cf3ee62 allow flags to be scoped to a plugin a7428eba3 add proof of concept for path flags API and add git modified flags 3effeb5cb Merge pull request #347 from kelaban/minor-fix-to-readme 04ac39b4b Fixes README for opening vim with no files d162c08fd comment and tweak the <LeftRelease> fix in 24561ad 2a769a726 Merge pull request #298 from buggo/master 0ee888ee1 simplify the <cr> mapping definition 0b551a8ab Merge pull request #346 from shanesmith/master 82cd4f5a9 Fix <CR> not working if active node map is special char such as <Right> b64942a50 uncomment out some needed syntax matching code... fail e954b2e6f trivial highlighting update for consistency e68e12a33 fix highlighting for readonly files b33d6daf0 remove the NERDChristmasTree option abb93879b simplify the syntax matching code slightly 634c23ead Merge branch 'better_symlink_highlighting' into update_highlighting 9d9edd03d separate out syntax matching for Dir Arrows vs old style 9704a38a1 update symlink highlighting 55a8954c4 update the doc/quickhelp for :Bookmark 0b1166ff7 update code in readme to auto-open a tree on startup b2d2cc184 Merge branch 'inkarkat-better-set-filetype' 4b89264df Merge branch 'better-set-filetype' of https://github.com/inkarkat/nerdtree into inkarkat-better-set-filetype 1168f5898 update the NERDTreeCascadeOpenSingleChildDir doc 0928b5b02 Merge pull request #251 from pendulm/master 8189597c0 Merge pull request #266 from staeff/patch-1 9e54c4808 Merge pull request #299 from tophsic/master 3863e6973 Merge pull request #316 from ZeroProbability/master 8b4841315 rename NERDTreeWildIgnore option and refactor the usage of it 186abb84c Merge pull request #303 from amarshall/wildignore 10ba84b1f Merge pull request #308 from igrep/patch-1 a45304832 Merge pull request #295 from DanielleSucher/create_parent_directories_as_needed dd8fe4bf6 Merge pull request #274 from an1zhegorodov/master e9427a9ca Merge pull request #326 from migueldvb/docs 23d2d1984 Merge pull request #331 from jinnko/add-bookmarks-sort-flag 1da289085 Merge pull request #338 from trkoch/spaces-umlauts 47a3a8410 Merge pull request #340 from netj/sort-hidden-first-option 43842e0de Option for mixing dot files when sorting fbab099fa Support space in path when renaming e38d8a834 Add flag to disable/enable bookmark sorting 603e6c74f Use pathogen.vim Helptags command in README file 13b4058f2 Issue 315 - Incorrect buffer deleted on file delete ad4ebaac9 correct invalid reference to MenuController a50c57192 Add option to respect wildignore 4f48af0cb Fix typo 24561ad59 Ugly hack to fix Error 121 when NERDTree is the active window and clicking on the command line below another window. eacd5d72e Create nested parent directories as needed 5b51f9d1b Fix help mistake 2ebe28468 Fixed typo in NERD_tree.txt 6ef67a2d8 Add correspoding close action to cascade open single child dir 60683f1cc Fix typo Casade to Cascade b8cab9bae Set filetype unconditionally and after defining mappings. git-subtree-dir: vim/bundle/nerdtree git-subtree-split: 4dada8c04fba25e788ea1836c82f9c18c1166b44
8 years ago
call nerdtree#ui_glue#chRootCwd()
endfunction
function! NERDTreeAddPathFilter(callback)
call g:NERDTree.AddPathFilter(a:callback)
endfunction
Squashed 'vim/bundle/nerdtree/' changes from b0bb781fc..4dada8c04 4dada8c04 update version number to 5.0.0 be8f18914 remove some unneeded header comments f486403b6 add license file 024966c7a move changelog out of the main doc, remove credits section e4891632f update changelog 0c13ebc12 remove some old commented code e27ab9c5c fsmenu: use nerdtree#echo* methods instead of reimplementing them 5b7085d9a fs menu: remove unused var assigns adc11983b fs_menu: put the NERDTreeListNode* methods together b19995b14 Merge pull request #382 from PhilRunninger/master 3fb18e739 Switch to upper case DIR /Q, in true DOS fashion f1af61ddf Use the system('DIR /Q...') function to display file info. c60f40137 Merge (p)roperties (for Windows) into the (l)ist menu item. fb030bcb1 Merge pull request #1 from scrooloose/master 47c20c4b6 Merge pull request #378 from Xuyuanp/up/master d38438209 Merge pull request #470 from egalpin/master af13d3965 Merge pull request #488 from hiberabyss/master caca3af21 Merge pull request #496 from evindor/master 3092ddf83 Merge pull request #502 from JESii/master 88104d26a Add ability to list file metadata... 8996ea5bb Fix MacOS detection for menu, fixes #478 34630f392 issue #147: add support to ~ expand in bookmarks 0b44415a3 Merge pull request #486 from Xuyuanp/syntax 43012a621 Merge pull request #484 from PickRelated/master d66370a8e Made NERDTreeFlags contained in NERDTreeExecFile 8c8c79410 Added character escaping to syn match regexes 8c7534bc9 Merge pull request #482 from PickRelated/master dc29ec2db Added global variables for changing default arrows g:NERDTreeDirArrowExpandable g:NERDTreeDirArrowCollapsable 188bd9265 Added global variables for changing default arrows bcf3de4fd Merge pull request #471 from SchDen/patch-1 f5fd12183 Incorrect path to event.vim 37f7a6cbe Update README.markdown 86e2e40af Merge pull request #466 from toiffel/master 93c9726c6 Fixed case-sensitive sorting of tree nodes when 'ignorecase' option is on 96c07746b Merge pull request #453 from WoLpH/patch-1 013c607ba Fixed incompatibility with older Vim versions af85499ed rename 2 sort key related vars 99fa465b5 fix syntax error 008b62f71 Merge pull request #450 from vtsang/master 6018af36b pretty up some FAQ code blocks 2c1ebc37b add an FAQ about highlighting file with certain extensions dfe260d1d doc the path listener API 10261d60a Updated the comment 80e184df5 Refactor code to use getSortKey() and replace regular expression with simple string comparison in tree_dir_node.vim 3fb3fe347 Merge branch 'master' of https://github.com/vtsang/nerdtree 57d5bd773 Speed up sortChildren() by using sorting token This improves the sorting functions from 12 seconds to 0.66 seconds for ~4000 objects 1f2531ec3 Speed up sortChildren() by using sorting token This improves the sorting functions from 12 seconds to 0.66 seconds for ~4000 objects a87b1bf3c Merge branch 'update_reuse_option' 5c2060149 doc NERDTreeAddPathFilter() 76dbc0c8e Merge branch 'add_path_filter_api' da3874cf9 fix a bug when opening files in a new tab 727021221 bugfix for secondary trees occurring when the screen state is saved 64a9579c1 add a path filter API 09e1dbec1 Merge branch 'refactor_autoload' fc4bcb480 remove UI.lolcats()... not sure what the story is there 8b189cb26 move some rendering and cursor moving functions out of autoload b0114d202 move dumpHelp out of autoload 53d2de86e move the closeTree functions out of autoload 0d88ce946 move isTreeOpen() out of autoload 8270b6d71 move nerdtree#getTreeWinNum out of autoload 973c9906f refactor 3 more functions out of the monolithic autoload file 0e87d45e8 update readme to add an FAQ, update the FAQ style and rm the changelog f8499462c Revert "Use different arrow characters for compatibility." 186f817f5 Revert "fix one of the old style arrows" 5cec19365 Merge pull request #411 from xdl/master b3281cc63 fix one of the old style arrows 87b27802b allow control over whether to reuse windows in different tabs 1cbd52aa7 Merge pull request #434 from handcraftedbits/master cd5f1685b Merge pull request #436 from devmanhinton/patch-1 321de6036 Remove NERD_tree.txt typo f6cad7e95 Use different arrow characters for compatibility. 6dfbcd660 Return early if exception was thrown in pathForString 3b98a7fca Merge pull request #403 from gcmt/pretty-cwd ba2604474 Truncate paths at slashes. f8fd2ecce Merge pull request #390 from zhangoose/patch-1 a895a53f1 easier to read one of the FAQ answers 3d421b8ec use the built in fnamemodify() to make a path relative 3ce33f017 fix escaping for `:edit` when renaming files 031ab5267 Merge remote-tracking branch 'origin/master' 5d0626a00 Merge pull request #384 from gastropoda/reopen-after-rename 1c0814622 apply @mixvin's windows path fix at the top of the method instead cd8d87fa5 Fix opening file path, in Windows 2fd0aa3ec Fix reloading renamed file 6ccf83df2 Add menu option to display file/directory properties. 5d1945228 Merge branch 'master' into up/master 8e06723c0 fix #363 a283c0e03 fix #363 4f1e6ecb0 Merge pull request #365 from ifsred/master c4086667e Fix doc map for NERDTreeMapChangeRoot a47c6caf8 Merge pull request #359 from Xuyuanp/up/master 8cd045d0e add refreshDirFlags method to avoid refreshing too many files c2dd75086 move nerdtree#treeExists.* methods into the NERDTree class fd14757c0 add proper events and make the notifier class generic f9a933991 allow plugins to override the default mappings aa831e242 Merge pull request #356 from alvan/patch-2 0c045d85e fix a bug from recent refactoring RE some NERDTreeCWD 2f552e116 add highlighting for flags 579d96a0f remove testing git plugin 9f351de59 Merge branch 'master' into expt_add_path_flags_and_git 1e0d1cbc8 move some more view code into the UI class 98a5d1fca Use event BufLeave instead of BufWinLeave to record screen state to avoid undefined b:NERDTree error 2f59cc208 Merge branch 'master' into expt_add_path_flags_and_git eaa66aaf6 fix the NERDTreeFind command - broken in recent refactoring 864462200 Merge branch 'master' into expt_add_path_flags_and_git 410081a60 Merge pull request #353 from lucascaton/master 1784de15d Updating creator.vim file (this fixes #352) 7f36008e8 Merge branch 'master' of github.com:scrooloose/nerdtree 23dfc6d81 continue breaking down the epic autoload module f982f61e8 continue breaking up the autoload/nerdtree god module 86488b1aa move ui functions out into their own autoload 04d9b2754 add `.refreshFlags()` to path/dir/file objects 3941389f1 fix a retarded bug with FlagSet.clearFlags 32cf3ee62 allow flags to be scoped to a plugin a7428eba3 add proof of concept for path flags API and add git modified flags 3effeb5cb Merge pull request #347 from kelaban/minor-fix-to-readme 04ac39b4b Fixes README for opening vim with no files d162c08fd comment and tweak the <LeftRelease> fix in 24561ad 2a769a726 Merge pull request #298 from buggo/master 0ee888ee1 simplify the <cr> mapping definition 0b551a8ab Merge pull request #346 from shanesmith/master 82cd4f5a9 Fix <CR> not working if active node map is special char such as <Right> b64942a50 uncomment out some needed syntax matching code... fail e954b2e6f trivial highlighting update for consistency e68e12a33 fix highlighting for readonly files b33d6daf0 remove the NERDChristmasTree option abb93879b simplify the syntax matching code slightly 634c23ead Merge branch 'better_symlink_highlighting' into update_highlighting 9d9edd03d separate out syntax matching for Dir Arrows vs old style 9704a38a1 update symlink highlighting 55a8954c4 update the doc/quickhelp for :Bookmark 0b1166ff7 update code in readme to auto-open a tree on startup b2d2cc184 Merge branch 'inkarkat-better-set-filetype' 4b89264df Merge branch 'better-set-filetype' of https://github.com/inkarkat/nerdtree into inkarkat-better-set-filetype 1168f5898 update the NERDTreeCascadeOpenSingleChildDir doc 0928b5b02 Merge pull request #251 from pendulm/master 8189597c0 Merge pull request #266 from staeff/patch-1 9e54c4808 Merge pull request #299 from tophsic/master 3863e6973 Merge pull request #316 from ZeroProbability/master 8b4841315 rename NERDTreeWildIgnore option and refactor the usage of it 186abb84c Merge pull request #303 from amarshall/wildignore 10ba84b1f Merge pull request #308 from igrep/patch-1 a45304832 Merge pull request #295 from DanielleSucher/create_parent_directories_as_needed dd8fe4bf6 Merge pull request #274 from an1zhegorodov/master e9427a9ca Merge pull request #326 from migueldvb/docs 23d2d1984 Merge pull request #331 from jinnko/add-bookmarks-sort-flag 1da289085 Merge pull request #338 from trkoch/spaces-umlauts 47a3a8410 Merge pull request #340 from netj/sort-hidden-first-option 43842e0de Option for mixing dot files when sorting fbab099fa Support space in path when renaming e38d8a834 Add flag to disable/enable bookmark sorting 603e6c74f Use pathogen.vim Helptags command in README file 13b4058f2 Issue 315 - Incorrect buffer deleted on file delete ad4ebaac9 correct invalid reference to MenuController a50c57192 Add option to respect wildignore 4f48af0cb Fix typo 24561ad59 Ugly hack to fix Error 121 when NERDTree is the active window and clicking on the command line below another window. eacd5d72e Create nested parent directories as needed 5b51f9d1b Fix help mistake 2ebe28468 Fixed typo in NERD_tree.txt 6ef67a2d8 Add correspoding close action to cascade open single child dir 60683f1cc Fix typo Casade to Cascade b8cab9bae Set filetype unconditionally and after defining mappings. git-subtree-dir: vim/bundle/nerdtree git-subtree-split: 4dada8c04fba25e788ea1836c82f9c18c1166b44
8 years ago
" SECTION: Post Source Actions {{{1
call nerdtree#postSourceActions()
"reset &cpo back to users setting
let &cpo = s:old_cpo
" vim: set sw=4 sts=4 et fdm=marker: