vim-exchange
Easy text exchange operator for Vim (by tommcdo)
targets.vim
Vim plugin that provides additional text objects (by wellle)
vim-exchange | targets.vim | |
---|---|---|
14 | 48 | |
740 | 2,512 | |
- | - | |
2.3 | 0.0 | |
3 months ago | 6 months ago | |
Vim Script | Vim Script | |
MIT License | MIT License |
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-exchange
Posts with mentions or reviews of vim-exchange.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-04-19.
-
Trying to write an editor plugin / tool to swap arguments (something like vim-sexp but for haskell)
I use the vim-exchange plugin.
-
swap words according to pattern
not sure that would be the best solution. I would use https://github.com/tommcdo/vim-exchange like this cxiwWW..
-
Maccy 0.26
It cannot. I sometimes need this feature but I just use an editor plugin (https://github.com/tommcdo/vim-exchange) for this..
-
mini.basics - Common configuration presets for options/mappings/autocommands
A bit of a feedback: - I've never really studied quickfix/loclist capabilities much until recently during writing a slightly updated version of :cnext/:cprev. It is indeed a very nice feature, albeit with a lot of "old Vim" presence to it. The 'fzf.vim' and 'telescope.nvim' were always enough for me. Now I have a small hope of trying to make a "poor man Telescope". - Never really understood the utility of 'vim-subversive'. It seems to be very similar to :s or "Visually select -> hit * -> cgn -> dot repeat until needed". - There is a MiniMisc.zoom() as an alternative to 'vim-maximizer'. - I use 'vim-argwrap' myself and do plan to do its analogue. Although hope to make a more or less simple function in 'mini.misc' instead of the whole module. - I did use 'sideways.vim' but replaced it with combination of "argument" textobject from 'mini.ai' and tommcdo/vim-exchange (which I do plan to rewrite, but not quite soon). Here is how (cxia + cxila; exchange "inner argument" with "last inner argument"). Far from perfect, but works most of the time. - I had 'undotree' in my installed plugins for more than a year and I've never really used it. I've seen an idea here, I think, about "straightening" undo history to become a single line instead of a tree. I currently like this idea better than 'undotree'. - Yes, something with "toggle bools" as functionality might be coming. But not very soon.
-
Switch position of function argument using IdeaVim in pycharm
I'm using https://github.com/tommcdo/vim-exchange in Vim.
-
Swapping words
Yeah, I use sideways.vim and vim-exchange. (Not entirely sure which solves what OP is asking about.)
- What is the coolest, unknown(-ish) plugin that you're using that other people could benefit from?
-
Paste a word without losing the yank buffer
For vim users tommcdo/vim-exchange cxiw jump to another word then press dot
-
How to switch the words on either side of dashes?
I use vim-exchange for situations like this. Old plugin, but still works fine. You visually select one side, press X, visually select the other side and press X. You can also use cx{motion}, and cx{motion} again if you don't want to use visual mode.
- How many plugins do you use on a daily basis and what are they?
targets.vim
Posts with mentions or reviews of targets.vim.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-07-01.
-
How to move really efficiently in Vim?
targets is nice too.
-
Two Weeks into Vim: A Transformation
The thing that has the biggest impact on me is ci”, ca”, da”, etc.. so I suggested getting used to using those.. and then you can get more pedantic with it using https://github.com/wellle/targets.vim
-
Is there a shorcut to select words in quotes including the quotes?
I do recommend getting, targets.vim https://github.com/wellle/targets.vim .. which unlocks the n(ext) and l(ast) verbs(?) ..ahhhh it’s REALLY REALLY good, I use 2in” like a lot
-
Text-object selection works forward, but not backwards, and I'm curious about that
In fact, as /u/Chillbrosaurus_Rex points out, there's a plugin, targets.vim, that expands on Vim's built-in text objects, and one of the things it does is to provide this kind of forward and reverse direction functionality.
- Installing argtextobj.vim
- How to delete inside backtick pairs, e.g JS template strings.
-
neovim plugins that have improved your workflow
Hey, I use targets.vim, how does it compare with that?
-
Leap.nvim: Neovim’s Answer to the Mouse
You might benefit from targets.vim, it works well with your thought process. It adds a bunch of new really useful editing targets (which should be builtin imo).
https://github.com/wellle/targets.vim
-
Is there a textobject for `object.` in `object.property.another`?
Thanks for the through explanation. I has seen that and considered using it in the past. Can I ask how it compares to https://github.com/wellle/targets.vim? Would you consider mini.ai a replacement or complementary?
-
Why does ci" work from elsewhere on a line, but it doesn't for ci[ , ci{ ?
This is provided by targets.vim, along with a bunch of other useful text objects.
What are some alternatives?
When comparing vim-exchange and targets.vim you can also consider the following projects:
vim-sandwich - Set of operators and textobjects to search/select/edit sandwiched texts.
nvim-treesitter-textobjects
vim-swap - Reorder delimited items.
wilder.nvim - A more adventurous wildmenu
traces.vim - Range, pattern and substitute preview for Vim
todoist.nvim - A todoist extension for neovim
vim-subversive - Vim plugin providing operator motions to quickly replace text
Neovim-from-scratch - 📚 A Neovim config designed from scratch to be understandable
vim-yoink - Vim plugin that maintains a yank history to cycle between when pasting
harpoon
nvim-dap-ui - A UI for nvim-dap
paq-nvim - 🌚 Neovim package manager
vim-exchange vs vim-sandwich
targets.vim vs nvim-treesitter-textobjects
vim-exchange vs vim-swap
targets.vim vs wilder.nvim
vim-exchange vs traces.vim
targets.vim vs todoist.nvim
vim-exchange vs vim-subversive
targets.vim vs Neovim-from-scratch
vim-exchange vs vim-yoink
targets.vim vs harpoon
vim-exchange vs nvim-dap-ui
targets.vim vs paq-nvim