ReplaceWithSameIndentRegister
vim-textobj-variable-segment
ReplaceWithSameIndentRegister | vim-textobj-variable-segment | |
---|---|---|
1 | 9 | |
9 | 149 | |
- | - | |
10.0 | 0.0 | |
over 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.
ReplaceWithSameIndentRegister
-
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.
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?
dirbuf.nvim - A file manager for Neovim which lets you edit your filesystem like you edit text
CamelCaseMotion - A vim script to provide CamelCase motion through words (fork of inkarkat's camelcasemotion script)
dial.nvim - enhanced increment/decrement plugin for Neovim.
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.
nvim-bufdel - A Neovim plugin to improve buffer deletion
targets.vim - Vim plugin that provides additional text objects
vim-search-pulse - Easily locate the cursor after a search
nvim-dap - Debug Adapter Protocol client implementation for Neovim
nvim-miniyank - killring-alike plugin for neovim and vim 8 with no default mappings
switch.vim - A simple Vim plugin to switch segments of text with predefined replacements
diffconflicts - A better Vimdiff Git mergetool
tidy.nvim - A small Neovim plugin to remove trailing whitespace and empty lines at end of file on every save