obsidian-vimrc-support icon indicating copy to clipboard operation
obsidian-vimrc-support copied to clipboard

Navigating to visual start or end of line doesn't work when selecting

Open ChrisBarfod opened this issue 3 years ago • 1 comments

I have these bindings mapped and they navigate in normal mode but don't work with visual select.

" Move to start of visual line
exmap lineStart cmcommand goLineLeftSmart
map ^ :lineStart

" Move to end of visual line
exmap lineEnd cmcommand goLineRight
map @ :lineEnd

ChrisBarfod avatar Jan 04 '22 12:01 ChrisBarfod

I'm not sure this is something the plugin has control of, but since I need to rewire cmcommand soon anyway (since it doesn't work for the new editor), I'll see if there's a way to make it work in Visual mode too.

esm7 avatar Jan 05 '22 06:01 esm7