Vim: Custom argument motion

Vim's default motionset is pretty robust but lacks an 'argument' motion ie., delete between arguments.
Usage:

                               di,
                                v
public function someFunc($arg1, $arg2, $arg3)

                               v (normal mode)
public function someFunc($arg1,,$arg3)

                                 ci,
                                  v
public function someFunc($arg1, $arg2, $arg3)

                               v (insert mode)
public function someFunc($arg1,,$arg3)
Plain"doesn't get much simpler than this nmap di, f,dT, nmap ci, f,cT, nmap da, f,ld2F,i,<ESC>l "delete argument nmap ca, f,ld2F,i,<ESC>a "delete arg and insert "Note that this only works for inner arguments not the ones "next to parens because you already have 3-stroke motions "for that: dT(, cT(, dt), ct) respectively
Add Comment
Comments
Terry – gunkel AT ids-mannheim DOT de Comment Link
You have more uesufl info than the British had colonies pre-WWII.