sideways.vim
traces.vim
sideways.vim | traces.vim | |
---|---|---|
13 | 17 | |
483 | 714 | |
- | - | |
5.5 | 1.8 | |
6 months ago | about 2 years ago | |
Ruby | Vim Script | |
MIT License | 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.
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.
traces.vim
-
Weekly Vim tips and tricks thread! #24
For those who wish to preview substitutions as they type à la Neovim inccommand, there's markonm/traces.vim.
- Why keeps you using vim vs neovim?
- How would I wrap a word, prefix it, and finally suffix it?
-
multiple cursors
Neovim has this built in with set inccommand=split, which is inspired by traces.vim, I believe.
-
What is the window called that comes up when you press q:
There's also markonm/traces.vim: Range, pattern and substitute preview for Vim
-
Would you be interested in multicursor support for Neovim?
Do you know traces.vim?
-
How to not ask for regex solutions all the time?
There is also https://github.com/markonm/traces.vim that shows the changes made by :substitute interactively.
-
I still want multiple cursors and I’ve been using Vim/neovim for 8 years!
Perhaps you mean traces.vim? I find it extends live feedback on substitutions and whatnot quite well. Useful for a lot of typical cases where you would expect native Vim/Neovim to provide live feedback but doesn’t. Also, I find the “Feature comparison” table for traces to be modest: it is even better / native is lacking.
-
Newbie question about :s
May want to use 'incsearch' & 'hlsearch' to help show patterns as you build them with /. Neovim will show substitution previews ('inccommand') and traces.vim will work with Vim.
-
Is there a plugin that makes searching and replacing stuff in vim easier?
The traces.vim plugin can help show substitution previews. Neovim may want to look at :h 'inccommand'
What are some alternatives?
argtextobj.vim - Text-object like motion for arguments
vim-signature - Plugin to toggle, display and navigate marks
nvim-revJ.lua - Nvim-plugin for doing the opposite of join-line (J) of arguments written in lua.
nvim-hlslens - Hlsearch Lens for Neovim
VSCode-Hungry-Delete - To delete an entire block of whitespace or tab, and reduce the time programmers need to press backspace
vim-exchange - Easy text exchange operator for Vim
vim-argumentative - Argumentative aids with manipulating and moving between function arguments.
vim-peekaboo - :eyes: " / @ / CTRL-R
switch.vim - A simple Vim plugin to switch segments of text with predefined replacements
vim-visualstar - star for Visual-mode.
splitjoin.vim - Switch between single-line and multiline forms of code
vim-visual-multi - Multiple cursors plugin for vim/neovim