We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bc3b40 commit 2e62cc3Copy full SHA for 2e62cc3
plugin/unimpaired.vim
@@ -61,15 +61,15 @@ call s:MapNextFamily('t','t')
61
62
" Handle previous/next movements, storing the last used one.
63
function! s:prevnext(cmd, dir, prevnext) abort
64
- let b:unimpaired_prevnext = a:prevnext
+ let g:unimpaired_prevnext = a:prevnext
65
let cmd = (v:count ? v:count : '').a:cmd.a:dir
66
if a:cmd ==# 'l' || a:cmd ==# 'c'
67
let cmd .= '|normal zv'
68
endif
69
return cmd
70
endfunction
71
function! s:last_prevnext_cmd(dir) abort
72
- let prevnext = get(b:, 'unimpaired_prevnext', [])
+ let prevnext = get(g:, 'unimpaired_prevnext', [])
73
if empty(prevnext)
74
if &diff
75
let m = 'c'
0 commit comments