vim-textobj-user
vim-textobj-user copied to clipboard
Select text-object not strictly under the cursor
I'm not sure this is the right place to ask, but I often find myself with the cursor on the start of a line, for instance like this:
\emph{wrong text}
and trying to hit ci} to change wrong text. It feels to me like it should work, much the same as you can use <C-a> to increment the next integer on a line of text. But it does not, instead I have to do f}ci}.
I know this is not a user-defined text-object, but perhaps this plugin could also add that sort of functionality? Or is there some other preferred way of doing what I want?
Kind regards.
As far as I know, there is no easy way to achieve the desired behavior. You have to redefine i}.
I see. Maybe one day, when I become proficient with Vim and find myself with some spare time, I'll look into this opportunity. Thanks anyway :)