vim-argumentative
Argumentative aids with manipulating and moving between function arguments. (by PeterRincker)
vim-swap
Reorder delimited items. (by machakann)
vim-argumentative | vim-swap | |
---|---|---|
3 | 6 | |
189 | 287 | |
- | - | |
0.0 | 0.0 | |
over 7 years ago | 8 months ago | |
VimL | Vim Script | |
- | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
vim-argumentative
Posts with mentions or reviews of vim-argumentative.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-22.
-
Manipulating and moving between function arguments in Neovim
I'm looking for a way to easily remove, swap, or jump between functions' arguments in Neovim. I've found https://github.com/PeterRincker/vim-argumentative, but it seems discontinued (last update 2014). I also found another one that uses Treesitter but doesn't seem to support all programming languages, and also, it was in a beta version.
-
Is there a plugin that provides "di," in neovim?
The options here (treesitter, targets) are likely better but here is the (vimscript) plugin I used: https://github.com/PeterRincker/vim-argumentative Surprising you were told there were no vim options.
-
move function arguments on multiple lines
vim-argumentative
vim-swap
Posts with mentions or reviews of vim-swap.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-02-18.
-
Which vim plugins do not have a lua equivalent yet?
Only one I use that hasn't been mentioned is a standalone vim-swap replacement. The existing ones all need treesitter (that I know of)
-
What is the coolest, unknown(-ish) plugin that you're using that other people could benefit from?
vim-swap provides an easy way to swap delimited items. It also provides textobjects targeting them, so deleting an argument becomes as easy as da,
-
Does the Neovim team have any plan to develop "User Custom Modes"
I use this feature right now, and it simplifies a lot. I use t to open tabmode so I can create or destroy tabs easily. b, which I use more often, opens bufmode so I can switch the buffer in the current window, or delete it while preserving my layout. gs allows me to swap delimited items using hjkl. w is for visually switching between open splits. Etc etc
-
Is there a plugin that provides "di," in neovim?
I recommend machakann/vim-swap. This plugin provides the way to swap function parameters, and text-objects that can be used to select parameters:
-
anyone know an elegant way to swap the orders of two parameters in a function call? foo(bar, baz) becomes foo(baz, bar)
I've been using vim-swap for a while and it's simple enough: when on top of a delimited argument, you can hit g> or g< to swap right or left, respectively.
- iswap.nvim: Interactively swap function arguments, list elements, and more using tree-sitter!
What are some alternatives?
When comparing vim-argumentative and vim-swap you can also consider the following projects:
sideways.vim - A Vim plugin to move function arguments (and other delimited-by-something items) left and right.
targets.vim - Vim plugin that provides additional text objects
vim-exchange - Easy text exchange operator for Vim
vim-textobj-parameter - A fork of textobj-parameter 0.1.0
iswap.nvim - Interactively select and swap function arguments, list elements, and much more. Powered by tree-sitter.
sibling-swap.nvim - Neovim plugin for swaps closest siblings with Tree-Sitter
nvim-treesitter-textobjects
telescope-undo.nvim - A telescope extension to view and search your undo tree 🌴
nvim-tabmode - A rewrite of Iron-E/vim-tabmode using Iron-E/nvim-libmodal
neovim - Vim-fork focused on extensibility and usability
vim-argumentative vs sideways.vim
vim-swap vs targets.vim
vim-argumentative vs targets.vim
vim-swap vs vim-exchange
vim-argumentative vs vim-textobj-parameter
vim-swap vs iswap.nvim
vim-argumentative vs sibling-swap.nvim
vim-swap vs nvim-treesitter-textobjects
vim-argumentative vs nvim-treesitter-textobjects
vim-swap vs telescope-undo.nvim
vim-swap vs nvim-tabmode
vim-swap vs neovim