vim-textobj-variable-segment
switch.vim
vim-textobj-variable-segment | switch.vim | |
---|---|---|
9 | 6 | |
149 | 641 | |
- | - | |
0.0 | 3.6 | |
almost 2 years ago | 9 months ago | |
Vim Script | Ruby | |
MIT License | 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-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!
switch.vim
-
Toggle markdown checkbox
There is also a more general plugin for swtching any statement in any filetype https://github.com/AndrewRadev/switch.vim.
-
New Plugin: boole.nvim — Toggle booleans, cycle days of the week, etc. with <C-a> and <C-x>
Cool! Seems to fill a similar space as https://github.com/AndrewRadev/switch.vim .
-
What is the coolest, unknown(-ish) plugin that you're using that other people could benefit from?
Switch.vim makes pretty easy to quick switch between definitions of something. I use it a lot to manage a list of to-dos while I'm working and quick switch between "TODO", "DOING" and "DONE"
-
nvim-toggler: invert words with two keystrokes
There is also switch.vim which has been around for a decade and a few other alternatives mentioned in the readme which are even older.
-
FAVOURITE PLUGINS
- https://github.com/andrewradev/switch.vim
-
Alternate Toggler - A very small plugin for toggling "boolean" values.
Works well for the simple usecase it tries to solve. If somebody wants even more customisability with the ability to define much more complex patterns then https://github.com/AndrewRadev/switch.vim is an alternative. It can also cycle through a list instead of just toggling between two values.
What are some alternatives?
CamelCaseMotion - A vim script to provide CamelCase motion through words (fork of inkarkat's camelcasemotion script)
focus.nvim - Auto-Focusing and Auto-Resizing Splits/Windows for Neovim written in Lua. A full suite of window management enhancements. Vim splits on steroids!
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.
eyeliner.nvim - 👀 Move faster with unique f/F indicators.
targets.vim - Vim plugin that provides additional text objects
sideways.vim - A Vim plugin to move function arguments (and other delimited-by-something items) left and right.
nvim-dap - Debug Adapter Protocol client implementation for Neovim
splitjoin.vim - Switch between single-line and multiline forms of code
tidy.nvim - A small Neovim plugin to remove trailing whitespace and empty lines at end of file on every save
no-clown-fiesta.nvim - A dark gray colorscheme
vim-wordmotion - More useful word motions for Vim
toggle-bool - vim plugin to toggle the boolean values