Incorporate vim-argumentative text objects and motions for function arguments #36435
bruce-hill
started this conversation in
Ideas From Vim
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The Argumentative plugin for vim is a super useful plugin that adds motions and text objects for manipulating function call arguments. For example, you can
da,
to delete around a function argument, which deletes the argument and any comma delimiter as needed. You can also use>,
or<,
to shift the argument left or right among the argument list. It would be really nice to have this feature, since I use it all the time in vim.Examples
Before pressing
da,
(delete around argument) (cursor is▒
)After pressing
da,
:Before pressing
>,
(shift argument right):After pressing
>,
:Note: this also works on lists/arrays/etc.
Beta Was this translation helpful? Give feedback.
All reactions