We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 88e4a9b + c29a349 commit 6acc0aeCopy full SHA for 6acc0ae
plugin/undotree.vim
@@ -350,8 +350,15 @@ function! s:undotree.Init()
350
endfunction
351
352
function! s:undotree.BindKey()
353
+ if v:version > 703 || (v:version == 703 && has("patch1261"))
354
+ let map_options = '<nowait> '
355
+ else
356
+ let map_options = ''
357
+ endif
358
for i in s:keymap
- silent exec 'nnoremap <silent> <script> <buffer> '.i[1].' :call <sid>undotreeAction("'.i[0].'")<cr>'
359
+ silent exec 'nnoremap <silent> <script> <buffer> '
360
+ \ .map_options
361
+ \ .i[1].' :call <sid>undotreeAction("'.i[0].'")<cr>'
362
endfor
363
if exists('*g:Undotree_CustomMap')
364
call g:Undotree_CustomMap()
0 commit comments