File tree 1 file changed +11
-6
lines changed
1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,10 @@ endfunction
50
50
51
51
command ! ErlangTags call VimErlangTags ()
52
52
53
- function ! VimErlangTagsSelect ()
53
+ function ! VimErlangTagsSelect (split )
54
+ if a: split
55
+ split
56
+ endif
54
57
let orig_isk = &isk
55
58
set isk += :
56
59
normal " _vawo
@@ -61,9 +64,11 @@ function! VimErlangTagsSelect()
61
64
endfunction
62
65
63
66
function ! VimErlangTagsDefineMappings ()
64
- nnoremap <buffer> <c-]> :call VimErlangTagsSelect()<cr><c-]>
65
- nnoremap <buffer> g<LeftMouse> :call VimErlangTagsSelect()<cr> g<LeftMouse>
66
- nnoremap <buffer> <c-LeftMouse> :call VimErlangTagsSelect()<cr><c-LeftMouse>
67
- nnoremap <buffer> g] :call VimErlangTagsSelect()<cr> g]
68
- nnoremap <buffer> g<c-]> :call VimErlangTagsSelect()<cr> g<c-]>
67
+ nnoremap <buffer> <c-]> :call VimErlangTagsSelect(0)<cr><c-]>
68
+ nnoremap <buffer> g<LeftMouse> :call VimErlangTagsSelect(0)<cr> g<LeftMouse>
69
+ nnoremap <buffer> <c-LeftMouse> :call VimErlangTagsSelect(0)<cr><c-LeftMouse>
70
+ nnoremap <buffer> g] :call VimErlangTagsSelect(0)<cr> g]
71
+ nnoremap <buffer> g<c-]> :call VimErlangTagsSelect(0)<cr> g<c-]>
72
+ nnoremap <buffer> <c-w><c-]> :call VimErlangTagsSelect(1)<cr><c-]>
73
+ nnoremap <buffer> <c-w> ] :call VimErlangTagsSelect(1)<cr><c-]>
69
74
endfunction
You can’t perform that action at this time.
0 commit comments