sideways.vim
vim-subversive
sideways.vim | vim-subversive | |
---|---|---|
13 | 13 | |
483 | 291 | |
- | - | |
5.5 | 2.8 | |
6 months ago | 4 months 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.
vim-subversive
-
mini.basics - Common configuration presets for options/mappings/autocommands
vim-subversive: a proper replace operator, one of the most important plugins if you ask me
-
Vim newbie here, could you share your intuitive mappings?
Remapping $ and ^ is just weird, those have already very nice mnemonics coming from regular expressions. And s for substitute, wait until you find out about things like https://github.com/svermeulen/vim-subversive
-
What is one key map you use that you don't understand how other Vim users live without?
![Vim-subversive](https://github.com/svermeulen/vim-subversive) is a plugin that basically exposes a functionality where you can replace a text object with something in a register.
-
neovim plugins that have improved your workflow
vim-subversive/substitute.nvim
-
Replace all occurrences of a word - best way?
You might also consider using [vim-subversive](https://github.com/svermeulen/vim-subversive) which simplifies search and replace
-
How do i avoid replacing the content of my clipboard when pasting on selected text ?
I recommend subversive. It's a feature I use every day https://github.com/svermeulen/vim-subversive
-
mapping to make use of f and t
Check out https://github.com/svermeulen/vim-subversive . It can recreate your configuration with: nmap s (SubversiveSubstitute)
- Lightspeed Neovim
- Help trying to break a bad habit
-
Wrap code block in {}
personally I use https://github.com/svermeulen/vim-subversive with use s and it's pretty useful
What are some alternatives?
argtextobj.vim - Text-object like motion for arguments
vim-exchange - Easy text exchange operator for Vim
nvim-revJ.lua - Nvim-plugin for doing the opposite of join-line (J) of arguments written in lua.
ReplaceWithRegister - Replace text with the contents of a register.
VSCode-Hungry-Delete - To delete an entire block of whitespace or tab, and reduce the time programmers need to press backspace
evil-ReplaceWithRegister - Port of vim plugin ReplaceWithRegister
vim-argumentative - Argumentative aids with manipulating and moving between function arguments.
vim-yoink - Vim plugin that maintains a yank history to cycle between when pasting
switch.vim - A simple Vim plugin to switch segments of text with predefined replacements
vim-sandwich - Set of operators and textobjects to search/select/edit sandwiched texts.
splitjoin.vim - Switch between single-line and multiline forms of code
vim-cutlass - Plugin that adds a 'cut' operation separate from 'delete'