vim-commaobject
vim-commaobject copied to clipboard
dA, => delete argument and drop the ','
I find such mapping also deleting the , pretty useful when moving arguments first:
map dA, da,:let @* = substitute(@*, '^, \s*', ''", ''")<cr>
you may want to add it to the plugin file
map dA, da,:let @* = substitute(substitute(@*, '^,\s*', '', ''), '\s*$', '', '')<cr>
even more useful also dropping trailing spaces. Thanks for the plugin
Have a look and comment on this patch, please: https://github.com/MarcWeber/vim-commaobject/tree/rewrite-supporting-n-dropping