vim-argumentative
sideways.vim
vim-argumentative | sideways.vim | |
---|---|---|
3 | 13 | |
189 | 483 | |
- | - | |
0.0 | 5.5 | |
over 7 years ago | 6 months ago | |
VimL | Ruby | |
- | MIT License |
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
-
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
sideways.vim
-
"vi," to select text between comma
There's a number of plugins for an "argument" text object (mine is sideways), but if you're just looking for a simple "change between commas", here's a great SO answer that explains how to create a mapping like that for yourself in two lines: https://stackoverflow.com/a/44109750/853920
-
mini.basics - Common configuration presets for options/mappings/autocommands
sideways.vim: move arguments left and right (I know this is nowadays done with tree sitter, but there isn't a ts grammar for everything so far)
-
Swapping words
Yeah, I use sideways.vim and vim-exchange. (Not entirely sure which solves what OP is asking about.)
- what is your startup time?
-
Swap any 2 comma separated selected WORDS
I use vim-sideways for this. If vim-swap doesn't work out, give it a shot!
- Features I miss from Jetbrains IDEs
-
How to insert text before end of a quote/brackets?
For the second case Sideways has SidewaysArgumentAppendLast. I mapped it to A (shouldn't conflict with other mappings).
-
How can I do delete in commas, change inside periods? Basically treating periods and commas like quotation, etc.
For argument lists, check out sideways.vim which is smart enough to shift arguments around instead of only selecting them.
-
How can i swap words ?
But there's also another "classic" plugin just for this use case: https://github.com/AndrewRadev/sideways.vim I've never used it though, so can't comment on its use, but it looks pretty good.
-
anyone know an elegant way to swap the orders of two parameters in a function call? foo(bar, baz) becomes foo(baz, bar)
Also not a native solution, but I've been using sideways.vim for a while. I have space as my leader and use leader-L and leader-R.
What are some alternatives?
targets.vim - Vim plugin that provides additional text objects
argtextobj.vim - Text-object like motion for arguments
vim-textobj-parameter - A fork of textobj-parameter 0.1.0
nvim-revJ.lua - Nvim-plugin for doing the opposite of join-line (J) of arguments written in lua.
sibling-swap.nvim - Neovim plugin for swaps closest siblings with Tree-Sitter
VSCode-Hungry-Delete - To delete an entire block of whitespace or tab, and reduce the time programmers need to press backspace
vim-swap - Reorder delimited items.
switch.vim - A simple Vim plugin to switch segments of text with predefined replacements
nvim-treesitter-textobjects
splitjoin.vim - Switch between single-line and multiline forms of code
traces.vim - Range, pattern and substitute preview for Vim
tabular - Vim script for text filtering and alignment