vim-exchange
vim-swap
vim-exchange | vim-swap | |
---|---|---|
14 | 6 | |
740 | 287 | |
- | - | |
2.3 | 0.0 | |
3 months ago | 8 months ago | |
Vim Script | Vim Script | |
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-exchange
-
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?
vim-swap
-
Which vim plugins do not have a lua equivalent yet?
Only one I use that hasn't been mentioned is a standalone vim-swap replacement. The existing ones all need treesitter (that I know of)
-
What is the coolest, unknown(-ish) plugin that you're using that other people could benefit from?
vim-swap provides an easy way to swap delimited items. It also provides textobjects targeting them, so deleting an argument becomes as easy as da,
-
Does the Neovim team have any plan to develop "User Custom Modes"
I use this feature right now, and it simplifies a lot. I use t to open tabmode so I can create or destroy tabs easily. b, which I use more often, opens bufmode so I can switch the buffer in the current window, or delete it while preserving my layout. gs allows me to swap delimited items using hjkl. w is for visually switching between open splits. Etc etc
-
Is there a plugin that provides "di," in neovim?
I recommend machakann/vim-swap. This plugin provides the way to swap function parameters, and text-objects that can be used to select parameters:
-
anyone know an elegant way to swap the orders of two parameters in a function call? foo(bar, baz) becomes foo(baz, bar)
I've been using vim-swap for a while and it's simple enough: when on top of a delimited argument, you can hit g> or g< to swap right or left, respectively.
- iswap.nvim: Interactively swap function arguments, list elements, and more using tree-sitter!
What are some alternatives?
vim-sandwich - Set of operators and textobjects to search/select/edit sandwiched texts.
targets.vim - Vim plugin that provides additional text objects
traces.vim - Range, pattern and substitute preview for Vim
iswap.nvim - Interactively select and swap function arguments, list elements, and much more. Powered by tree-sitter.
vim-subversive - Vim plugin providing operator motions to quickly replace text
nvim-treesitter-textobjects
vim-yoink - Vim plugin that maintains a yank history to cycle between when pasting
telescope-undo.nvim - A telescope extension to view and search your undo tree 🌴
nvim-dap-ui - A UI for nvim-dap
nvim-tabmode - A rewrite of Iron-E/vim-tabmode using Iron-E/nvim-libmodal
neovim - Vim-fork focused on extensibility and usability