vim-textobj-user icon indicating copy to clipboard operation
vim-textobj-user copied to clipboard

Select text-object not strictly under the cursor

Open sigvaldm opened this issue 7 years ago • 2 comments

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.

sigvaldm avatar Jan 25 '18 12:01 sigvaldm

As far as I know, there is no easy way to achieve the desired behavior. You have to redefine i}.

kana avatar Jan 25 '18 13:01 kana

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 :)

sigvaldm avatar Jan 25 '18 13:01 sigvaldm