Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[vim] NERD_tree update

  • Loading branch information...
commit c09e145169b4987ebaa27d5827b4846a3cbd193e 1 parent 8685423
@guns authored
View
6 etc/vim/bundle/nerdtree/README.markdown
@@ -44,11 +44,11 @@ The following features and functionality are provided by the NERD tree:
as you left it
* You can have a separate NERD tree for each tab, share trees across tabs,
or a mix of both.
- * By default the script overrides the default file browser (netw), so if
- you :edit a directory a (slighly modified) NERD tree will appear in the
+ * By default the script overrides the default file browser (netrw), so if
+ you :edit a directory a (slightly modified) NERD tree will appear in the
current window
* A programmable menu system is provided (simulates right clicking on a node)
- * one default menu plugin is provided to perform basic filesytem
+ * one default menu plugin is provided to perform basic filesystem
operations (create/delete/move/copy files/directories)
* There's an API for adding your own keymappings
View
13 etc/vim/bundle/nerdtree/autoload/nerdtree.vim
@@ -227,6 +227,19 @@ function! nerdtree#invokeKeyMap(key)
call g:NERDTreeKeyMap.Invoke(a:key)
endfunction
+" FUNCTION: nerdtree#loadClassFiles() {{{2
+function! nerdtree#loadClassFiles()
+ runtime lib/nerdtree/path.vim
+ runtime lib/nerdtree/menu_controller.vim
+ runtime lib/nerdtree/menu_item.vim
+ runtime lib/nerdtree/key_map.vim
+ runtime lib/nerdtree/bookmark.vim
+ runtime lib/nerdtree/tree_file_node.vim
+ runtime lib/nerdtree/tree_dir_node.vim
+ runtime lib/nerdtree/opener.vim
+ runtime lib/nerdtree/creator.vim
+endfunction
+
" FUNCTION: nerdtree#postSourceActions() {{{2
function! nerdtree#postSourceActions()
call g:NERDTreeBookmark.CacheBookmarks(0)
View
10 etc/vim/bundle/nerdtree/doc/NERD_tree.txt
@@ -83,12 +83,12 @@ The following features and functionality are provided by the NERD tree:
as you left it
* You can have a separate NERD tree for each tab, share trees across tabs,
or a mix of both.
- * By default the script overrides the default file browser (netw), so if
- you :edit a directory a (slighly modified) NERD tree will appear in the
+ * By default the script overrides the default file browser (netrw), so if
+ you :edit a directory a (slightly modified) NERD tree will appear in the
current window
* A programmable menu system is provided (simulates right clicking on a
node)
- * one default menu plugin is provided to perform basic filesytem
+ * one default menu plugin is provided to perform basic filesystem
operations (create/delete/move/copy files/directories)
* There's an API for adding your own keymappings
@@ -228,7 +228,7 @@ gs......Same as s, but leave the cursor on the NERDTree..........|NERDTree-gs|
O.......Recursively open the selected directory..................|NERDTree-O|
x.......Close the current nodes parent...........................|NERDTree-x|
X.......Recursively close all children of the current node.......|NERDTree-X|
-e.......Edit the current dif.....................................|NERDTree-e|
+e.......Edit the current dir.....................................|NERDTree-e|
<CR>...............same as |NERDTree-o|.
double-click.......same as the |NERDTree-o| map.
@@ -780,7 +780,7 @@ If set to 1, doing a >
<
will open up a "secondary" NERD tree instead of a netrw in the target window.
-Secondary NERD trees behaves slighly different from a regular trees in the
+Secondary NERD trees behaves slightly different from a regular trees in the
following respects:
1. 'o' will open the selected file in the same window as the tree,
replacing it.
View
2  etc/vim/bundle/nerdtree/plugin/nerdtree/bookmark.vim → etc/vim/bundle/nerdtree/lib/nerdtree/bookmark.vim
@@ -67,7 +67,7 @@ function! s:Bookmark.BookmarkNames()
endfunction
" FUNCTION: Bookmark.CacheBookmarks(silent) {{{1
-" Class method to read all bookmarks from the bookmarks file intialize
+" Class method to read all bookmarks from the bookmarks file initialize
" bookmark objects for each one.
"
" Args:
View
4 etc/vim/bundle/nerdtree/plugin/nerdtree/creator.vim → etc/vim/bundle/nerdtree/lib/nerdtree/creator.vim
@@ -7,11 +7,11 @@ let g:NERDTreeCreator = s:Creator
"FUNCTION: s:Creator._bindMappings() {{{1
function! s:Creator._bindMappings()
- call g:NERDTreeKeyMap.BindAll()
-
"make <cr> do the same as the default 'o' mapping
exec "nnoremap <silent> <buffer> <cr> :call nerdtree#invokeKeyMap('". g:NERDTreeMapActivateNode ."')<cr>"
+ call g:NERDTreeKeyMap.BindAll()
+
command! -buffer -nargs=? Bookmark :call nerdtree#bookmarkNode('<args>')
command! -buffer -complete=customlist,nerdtree#completeBookmarks -nargs=1 RevealBookmark :call nerdtree#revealBookmark('<args>')
command! -buffer -complete=customlist,nerdtree#completeBookmarks -nargs=1 OpenBookmark :call nerdtree#openBookmark('<args>')
View
0  etc/vim/bundle/nerdtree/plugin/nerdtree/key_map.vim → etc/vim/bundle/nerdtree/lib/nerdtree/key_map.vim
File renamed without changes
View
0  ...ndle/nerdtree/plugin/nerdtree/menu_controller.vim → .../bundle/nerdtree/lib/nerdtree/menu_controller.vim
File renamed without changes
View
0  ...vim/bundle/nerdtree/plugin/nerdtree/menu_item.vim → etc/vim/bundle/nerdtree/lib/nerdtree/menu_item.vim
File renamed without changes
View
0  etc/vim/bundle/nerdtree/plugin/nerdtree/opener.vim → etc/vim/bundle/nerdtree/lib/nerdtree/opener.vim
File renamed without changes
View
0  etc/vim/bundle/nerdtree/plugin/nerdtree/path.vim → etc/vim/bundle/nerdtree/lib/nerdtree/path.vim
File renamed without changes
View
0  ...bundle/nerdtree/plugin/nerdtree/tree_dir_node.vim → ...im/bundle/nerdtree/lib/nerdtree/tree_dir_node.vim
File renamed without changes
View
0  ...undle/nerdtree/plugin/nerdtree/tree_file_node.vim → ...m/bundle/nerdtree/lib/nerdtree/tree_file_node.vim
File renamed without changes
View
10 etc/vim/bundle/nerdtree/plugin/NERD_tree.vim
@@ -136,15 +136,7 @@ call s:initVariable("g:NERDTreeMapUpdirKeepOpen", "U")
call s:initVariable("g:NERDTreeMapCWD", "CD")
"SECTION: Load class files{{{2
-runtime plugin/nerdtree/path.vim
-runtime plugin/nerdtree/menu_controller.vim
-runtime plugin/nerdtree/menu_item.vim
-runtime plugin/nerdtree/key_map.vim
-runtime plugin/nerdtree/bookmark.vim
-runtime plugin/nerdtree/tree_file_node.vim
-runtime plugin/nerdtree/tree_dir_node.vim
-runtime plugin/nerdtree/opener.vim
-runtime plugin/nerdtree/creator.vim
+call nerdtree#loadClassFiles()
" SECTION: Commands {{{1
"============================================================
Please sign in to comment.
Something went wrong with that request. Please try again.