This commit is contained in:
Andreas Guth
2024-09-12 04:34:39 +00:00
committed by GitHub
2 changed files with 26 additions and 20 deletions

View File

@@ -752,16 +752,16 @@ function! s:interactive(range, modes, n, d, opts, rules, vis, bvis)
else
let s:live = 1
endif
elseif c == "\<Left>"
elseif c == "\<Left>" || ch == "h"
let opts['stl'] = 1
let opts['lm'] = 0
elseif c == "\<Right>"
elseif c == "\<Right>" || ch == "l"
let opts['stl'] = 0
let opts['lm'] = 1
elseif c == "\<Down>"
elseif c == "\<Down>" || ch == "j"
let opts['lm'] = 0
let opts['rm'] = 0
elseif c == "\<Up>"
elseif c == "\<Up>" || ch == "k"
silent! call remove(opts, 'stl')
silent! call remove(opts, 'lm')
silent! call remove(opts, 'rm')