I have a file formatted like this+---------------------------------+| Text text text                  || Text text text                  || Text text text                  |+---------------------------------+Within the ASCII box I would like to remap the standard VIM keys, like $, _, ... to ignore the ASCII box during editing.For example, $ should place the cursor on the last letter of the text and not on the '|'. I can make it with the simplennoremap <buffer> $ f\|geThis works great, but when I try to combine the new $ with other VIM commands, this doesn't work any more. For example, d$ deletes the entire like including the last '|' char.In my understanding, I have to use onoremap somehow to support motions, and then vnoremap to support visual mode.My question is:How should I remap $ so that it nicely integrates with all VIM-aspects? (visual mode, motions, objects, ...)
Remap standard motions
cursor motions;object motions;key bindings