vim-ReplaceWithRegister
vim-textobj-user
vim-ReplaceWithRegister | vim-textobj-user | |
---|---|---|
8 | 25 | |
73 | 1,424 | |
- | - | |
1.8 | 0.0 | |
almost 3 years ago | about 4 years ago | |
Vim Script | Vim Script | |
- | - |
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-ReplaceWithRegister
-
Does macros get easier over time?
With https://github.com/inkarkat/vim-ReplaceWithRegister, yiqgllA,
-
Are there plugins for Neovim that don't exist, that should exist, in your opinion?
If you're into hidden gems: * This fixes repeat behaviour for all visual modes, like proper . in visual block. * This this provides a proper paste-over operator, working with all register types (text?,line,block).
-
Is there a way to delete lines without putting them in your 'Yank Buffer'?
My favourite solution to this is the ReplaceWithRegister plugin.
-
cursor-position after deleting text-objects
I would recommend this plugin to solve this kind of problems https://github.com/inkarkat/vim-ReplaceWithRegister
-
Favorite unfamous vim/neovim plugin?
Thanks a lot for this recommendation! This particular repo hasn't been updated since 2014, here is a more up-to-date version by the same author: https://github.com/inkarkat/vim-ReplaceWithRegister.
-
Easy way to yank and replace?
The best solution I've found to this is a plug-in called Replace with register, which maps to gr (mnemonic "go replace"). This lets you just do diw, move, griw.
-
Changing the copy buffer of yank and delete word
If you don't mind using plugins, take a look at vim-replace-with-register, which is designed to solve exactly this problem. It gives you a command, mapped to gr by default, which replaces the following text object with the contents of a register. So you can delete a word (daw), then move to a different word and replace it with the contents of the default register (graw).
vim-textobj-user
-
vim-textobj-variable-segment throws an error using lazy.nvim
Using lazy, it throws the error 70% of the time. when it doesn't throw the error it works. but It uses a dependency (vim-textobj-user) and I already tested it (only using that plugin without other plugins) is not the dependency's fault.
-
What are all the accepted "inner" motion arguments?
Just to add to that, there are also various plugins that give you additional text objects, such as: - ii for indent levels (https://github.com/kana/vim-textobj-indent) - iz for folds (https://github.com/kana/vim-textobj-fold) - if for functions (https://github.com/kana/vim-textobj-function) - ic for comments (https://github.com/glts/vim-textobj-comment) - User-defined text objects (https://github.com/kana/vim-textobj-user)
-
How to change between slashes using vim-textobj-user?
Thank you, kind vimmer. For others stumbling upon this issue, having same character around is not supported in textobj-user, but there's a workaround: https://github.com/kana/vim-textobj-user/issues/48.
-
What kind of short cut key if any do you use for changing text up until next underscore character?
The vim-wordmotion plugin extends the idea of words to include snake case and camel case words among other things. On a related note, the vim-textobj-user plugin lets you extend vim's understanding of text objects.
- Installing argtextobj.vim
-
How to detect nearest nested bracket (of any type)
if anyone wants to use this, just make sure to also install https://github.com/kana/vim-textobj-user for it to work
- Are there plugins for Neovim that don't exist, that should exist, in your opinion?
-
Delete word inside parens without deleting paren or comma
I would highly recommend https://github.com/kana/vim-textobj-user. Specifically, you'd want to pair it with https://github.com/sgur/vim-textobj-parameter. Check the readme for other useful custom text objects, personally I think this is one of my most useful set of plugins
-
Leap.nvim: Neovim’s Answer to the Mouse
I NEVER use count, because my mental flow is drastically hindered by pausing for any form of counting in midst of editing; I stay off even relative numbers even. In their place, I enable a vast number of text objects instead, quite a few implemented through the `kana/textobj-user plugin`. Good text object are an embodiment of intent and thus map better mentally than any method using brute counting, even at the loss of some precision and speed.
[kana/textobj-user](https://github.com/kana/vim-textobj-user)
-
Vim text object for path
I would suggest using vim-textobj-user. Someone has already implemented a path object using this plugin. You can find this implementation here.
What are some alternatives?
vim-easyclip - Simplified clipboard functionality for Vim
nvim-treesitter-textobjects
vim-cutlass - Plugin that adds a 'cut' operation separate from 'delete'
wildfire.vim - Smart selection of the closest text object
vim-visual-multi - Multiple cursors plugin for vim/neovim
vim-indent-object - Vim plugin that defines a new text object representing lines of code at the same indent level. Useful for python/vim scripts, etc.
range-highlight.nvim - An extremely lightweight plugin (~ 120loc) that hightlights ranges you have entered in commandline.
coc.nvim - Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
vim-stamp - A vim plugin that replaces the currently selected text with the text in the delete register
vim-matchup - vim match-up: even better % :facepunch: navigate and highlight matching words :facepunch: modern matchit and matchparen. Supports both vim and neovim + tree-sitter.
telescope-command-palette.nvim - Create key-bindings and watch them with telescope :telescope:
vim-textobj-indent - Vim plugin: Text objects for indented blocks of lines