ReplaceWithRegister
vim-textobj-variable-segment
ReplaceWithRegister | vim-textobj-variable-segment | |
---|---|---|
8 | 9 | |
310 | 149 | |
- | - | |
10.0 | 0.0 | |
almost 9 years ago | almost 2 years ago | |
VimL | 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.
ReplaceWithRegister
- replacewithregister doesn't work properly in LunarVim
-
What Vim Motions Do I Need For This?
I think my single most-used plugin is ReplaceWithRegister. Using that, your 4th step would be gri" (go replace inside quotes).
-
What is the coolest, unknown(-ish) plugin that you're using that other people could benefit from?
2 essential plugins for me that I don’t see talked about much anymore are vim-scripts/ReplaceWithRegister and vim-scripts/ReplaceWithSameIndentRegister. The vanilla way to do this is not super difficult, delete into the black hole register, then paste. Or visually select, then paste. And afterwards clean up the formatting if necessary. But I do this hundreds of times a day, the convenience of having a dedicated command for it is massive.
-
Registers on macOS in the context of pasting from an external app
It sounds like you would enjoy this plugin: https://github.com/vim-scripts/ReplaceWithRegister.
-
What are your must-have vim/nvim extensions?
Someone shared ReplaceWithRegister in a previous thread about plugins. It's become my most used.
- FAVOURITE PLUGINS
-
Favorite unfamous vim/neovim plugin?
One that I use literally 50 times a day is (Replace with register)[https://github.com/vim-scripts/ReplaceWithRegister]. It lets you replace the motioned content with your register, so griw would replace the current word object with the register. Absolutely lost with out it.
- Help trying to break a bad habit
vim-textobj-variable-segment
-
vim-textobj-variable-segment throws an error using lazy.nvim
textobj-variable-segment link
- What kind of short cut key if any do you use for changing text up until next underscore character?
-
CF / DF Movements
I use fuadsaud/vim-textobj-variable-segment and then do "civ"/"div". Useful for camel case as well.
-
What is the coolest, unknown(-ish) plugin that you're using that other people could benefit from?
vim-textobj-variable-segment is useful when editing snake case or camel case words.
-
FAVOURITE PLUGINS
julian/vim-textobj-variable-segment adds v as text object for a section of a variable name, e.g. camelCase, PascalCase, snake_case, kebab-case, etc bold text use to show a section that could be highlighted with viv (whereas vav would also select the hyphen or underscore)
-
Unlucky defaults: ciw, cw, diw, dw?
FYI: There is a plugin which adds text objects for the camelCase and snake_case segments which can be changed with the civ command.
-
Replace word up to _ without changing search
You can also use something like vim-textobj-variable-segment or roll your own
- Possible to learn emacs org mode in 15 - 30 hours?
-
Treat camel case as sperate words
I've tried CamelCaseMotion but after finding out about vim-tesxtobj-variable-segment, I've never looked back!
What are some alternatives?
nvim-scrollbar - Extensible Neovim Scrollbar
CamelCaseMotion - A vim script to provide CamelCase motion through words (fork of inkarkat's camelcasemotion script)
vim-subversive - Vim plugin providing operator motions to quickly replace text
logseq - A local-first, non-linear, outliner notebook for organizing and sharing your personal knowledge base. Use it to organize your todo list, to write your journals, or to record your unique life.
YankAssassin.vim - Don't let the cursor move while Yanking in Vim/Neovim
targets.vim - Vim plugin that provides additional text objects
vim-easymotion - Vim motions on speed!
nvim-dap - Debug Adapter Protocol client implementation for Neovim
switch.vim - A simple Vim plugin to switch segments of text with predefined replacements
vim-cool - A very simple plugin that makes hlsearch more useful.
tidy.nvim - A small Neovim plugin to remove trailing whitespace and empty lines at end of file on every save