mirror of
https://github.com/gryf/tagbar.git
synced 2025-12-17 19:40:27 +01:00
Allow mouse clicks in insert mode, closes #21
This commit is contained in:
@@ -875,12 +875,18 @@ endfunction
|
||||
|
||||
" s:MapKeys() {{{2
|
||||
function! s:MapKeys()
|
||||
nnoremap <script> <silent> <buffer> <CR> :call <SID>JumpToTag(0)<CR>
|
||||
nnoremap <script> <silent> <buffer> <2-LeftMouse>
|
||||
\ :call <SID>JumpToTag(0)<CR>
|
||||
nnoremap <script> <silent> <buffer> p :call <SID>JumpToTag(1)<CR>
|
||||
nnoremap <script> <silent> <buffer> <LeftRelease>
|
||||
\ <LeftRelease>:call <SID>CheckMouseClick()<CR>
|
||||
\ <LeftRelease>:call <SID>CheckMouseClick()<CR>
|
||||
|
||||
inoremap <script> <silent> <buffer> <2-LeftMouse>
|
||||
\ <C-o>:call <SID>JumpToTag(0)<CR>
|
||||
inoremap <script> <silent> <buffer> <LeftRelease>
|
||||
\ <LeftRelease><C-o>:call <SID>CheckMouseClick()<CR>
|
||||
|
||||
nnoremap <script> <silent> <buffer> <CR> :call <SID>JumpToTag(0)<CR>
|
||||
nnoremap <script> <silent> <buffer> p :call <SID>JumpToTag(1)<CR>
|
||||
nnoremap <script> <silent> <buffer> <Space> :call <SID>ShowPrototype()<CR>
|
||||
|
||||
nnoremap <script> <silent> <buffer> + :call <SID>OpenFold()<CR>
|
||||
|
||||
Reference in New Issue
Block a user