sideways.vim
switch.vim
sideways.vim | switch.vim | |
---|---|---|
13 | 6 | |
483 | 641 | |
- | - | |
5.5 | 3.6 | |
6 months ago | 9 months ago | |
Ruby | Ruby | |
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.
switch.vim
-
Toggle markdown checkbox
There is also a more general plugin for swtching any statement in any filetype https://github.com/AndrewRadev/switch.vim.
-
New Plugin: boole.nvim — Toggle booleans, cycle days of the week, etc. with <C-a> and <C-x>
Cool! Seems to fill a similar space as https://github.com/AndrewRadev/switch.vim .
-
What is the coolest, unknown(-ish) plugin that you're using that other people could benefit from?
Switch.vim makes pretty easy to quick switch between definitions of something. I use it a lot to manage a list of to-dos while I'm working and quick switch between "TODO", "DOING" and "DONE"
-
nvim-toggler: invert words with two keystrokes
There is also switch.vim which has been around for a decade and a few other alternatives mentioned in the readme which are even older.
-
FAVOURITE PLUGINS
- https://github.com/andrewradev/switch.vim
-
Alternate Toggler - A very small plugin for toggling "boolean" values.
Works well for the simple usecase it tries to solve. If somebody wants even more customisability with the ability to define much more complex patterns then https://github.com/AndrewRadev/switch.vim is an alternative. It can also cycle through a list instead of just toggling between two values.
What are some alternatives?
argtextobj.vim - Text-object like motion for arguments
focus.nvim - Auto-Focusing and Auto-Resizing Splits/Windows for Neovim written in Lua. A full suite of window management enhancements. Vim splits on steroids!
nvim-revJ.lua - Nvim-plugin for doing the opposite of join-line (J) of arguments written in lua.
eyeliner.nvim - 👀 Move faster with unique f/F indicators.
VSCode-Hungry-Delete - To delete an entire block of whitespace or tab, and reduce the time programmers need to press backspace
splitjoin.vim - Switch between single-line and multiline forms of code
vim-argumentative - Argumentative aids with manipulating and moving between function arguments.
no-clown-fiesta.nvim - A dark gray colorscheme
toggle-bool - vim plugin to toggle the boolean values
traces.vim - Range, pattern and substitute preview for Vim
alternate-toggler - A very small plugin for toggling alternate "boolean" values.