Skip to main content

Timeline for imap and the r operation

Current License: CC BY-SA 3.0

6 events
when toggle format what by license comment
Nov 19, 2015 at 15:01 vote accept Andreas
Nov 18, 2015 at 16:38 comment added saginaw The text that is between your cursor and the position you reach after you give a movement could be considered as an object, on which the operator acts. You can define your own objects with the onoremap command. It's explained in more details here : learnvimscriptthehardway.stevelosh.com/chapters/15.html
Nov 18, 2015 at 16:37 comment added saginaw I don't know in which mode we are when we hit r but as far I as I know there's no mapping for it (inoremap, vnoremap, cnoremap... have no effect). As for the operator pending mode, I think it's something else. When you hit the key of an operator (d to delete, c to cut, s to substitute etc.), vim waits for a movement to know on which characters it must act. I think that the term operator pending mode refers to that moment. But maybe I misunderstood the concept.
Nov 18, 2015 at 16:30 history edited saginaw CC BY-SA 3.0
added 12 characters in body
Nov 18, 2015 at 16:06 comment added Raphael Ahrens Isn't the mode your in after pressing r called operator pending mode or so?
Nov 18, 2015 at 15:37 history answered saginaw CC BY-SA 3.0