File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ snippets=(
40
40
snippets/javascript.snippets
41
41
)
42
42
for i in ${snippets[@]} ; do curl -L $repo /$i > $bundle /snipmate.vim/$i ; done
43
+ curl -L $repo /plugins/yank_mapping.vim > $bundle /snipmate.vim/nerdtree/plugin/yank_mapping.vim
43
44
44
45
# install npm dependencies
45
46
command -v eslint > /dev/null 2>&1 || npm install -g eslint eslint-config-standard eslint-plugin-import eslint-plugin-node eslint-plugin-promise eslint-plugin-standard
Original file line number Diff line number Diff line change
1
+ " ~/.vim/bundle/nerdtree/plugin/yank_mapping.vim
2
+ call NERDTreeAddKeyMap ({
3
+ \ ' key' : ' yy' ,
4
+ \ ' callback' : ' NERDTreeYankCurrentNode' ,
5
+ \ ' quickhelpText' : ' put full path of current node into the "+ register' })
6
+
7
+ function ! NERDTreeYankCurrentNode ()
8
+ let n = g: NERDTreeFileNode .GetSelected ()
9
+ if n != {}
10
+ call setreg (' +' , n .path .str ())
11
+ endif
12
+ endfunction
You can’t perform that action at this time.
0 commit comments