I often use commands like ci( and di{ when editing source code.
Parameters in Ruby blocks are contained inside pipe characters, like |a, b|
Is it possible to extend this behavior to add support for |, so that commands like ci|, da| and yi| work properly?
I have the following in my vimrc (I have added the
va|andvi|commands for completeness):The
,operator repeats the previousF,f,Tortbut in the opposite direction. A very useful key!These mappings can be easily modified to support other delimiters; I use the
$versions all the time when editing LaTeX.