File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -371,6 +371,13 @@ function! nerdtree#initNerdTreeMirror()
371
371
endif
372
372
endfunction
373
373
374
+ " FUNCTION: nerdtree#invokeKeyMap(key) {{{2
375
+ " this is needed since I cant figure out how to invoke dict functions from a
376
+ " key map
377
+ function ! nerdtree#invokeKeyMap (key )
378
+ call g: NERDTreeKeyMap .Invoke (a: key )
379
+ endfunction
380
+
374
381
" FUNCTION: nerdtree#nextBufferName() {{{2
375
382
" returns the buffer name for the next nerd tree
376
383
function ! nerdtree#nextBufferName ()
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ function! s:KeyMap.bind()
43
43
44
44
let premap = self .key == " <LeftRelease>" ? " <LeftRelease>" : " "
45
45
46
- exec ' nnoremap <buffer> <silent> ' . self .key . premap . ' :call <SID>KeyMap_Invoke ("' . keymapInvokeString .' ")<cr>'
46
+ exec ' nnoremap <buffer> <silent> ' . self .key . premap . ' :call nerdtree#invokeKeyMap ("' . keymapInvokeString .' ")<cr>'
47
47
endfunction
48
48
49
49
" FUNCTION: KeyMap.Remove(key, scope) {{{3
@@ -121,12 +121,6 @@ function! s:KeyMap.Invoke(key)
121
121
endif
122
122
endfunction
123
123
124
- " this is needed since I cant figure out how to invoke dict functions from a
125
- " key map
126
- function ! s: KeyMap_Invoke (key )
127
- call s: KeyMap .Invoke (a: key )
128
- endfunction
129
-
130
124
" FUNCTION: KeyMap.Create(options) {{{3
131
125
function ! s: KeyMap .Create (options )
132
126
let newKeyMap = copy (self )
@@ -145,3 +139,4 @@ function! s:KeyMap.Add(keymap)
145
139
call add (s: KeyMap .All (), a: keymap )
146
140
endfunction
147
141
142
+ " vim: set sw = 4 sts = 4 et fdm = marker:
You can’t perform that action at this time.
0 commit comments