vim-textobj-user
hop.nvim
vim-textobj-user | hop.nvim | |
---|---|---|
25 | 46 | |
1,424 | 2,413 | |
- | - | |
0.0 | 2.9 | |
about 4 years ago | 8 months ago | |
Vim Script | Lua | |
- | GNU General Public License v3.0 or later |
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-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.
hop.nvim
-
hardtime.nvim - A Neovim plugin helping you establish good command workflow and habit
Personally I like to just hop using the hop plugin: https://github.com/phaazon/hop.nvim
-
Using hop.nvim on empty line breaks plugin (bug?)
I am using hop.nvim and hop.nvim works great most of the time except when I'm on an empty line. Suppose I'm editing this snippet and ^ represents my cursor
-
Rapidly selecting/copying in kitty?
I waas thinking about something ala https://github.com/phaazon/hop.nvim to do fast selections, f.e.: -Entering visual mode or a specific mode -Search for f.e. 2 characters -Getting "hints" (like in vimium) for the matches -Being able to select and copy the hinted matches and being able to chose to either yank a line, a word, a url... etc
- Question regarding vertical movement
- Neovim - Workflow para Java, C# e JS/TypeScript (Atualização com Neovim 0.8 e LSP)
-
Quick tip: One keymap can save you from using multiple plugins
So I was previously using a bunch of plugins to be able to move between frequently used block delimiters "(){}...", things like Vim-matchup or Nvim-treesitter-textobjects. However, i had the sudden realization that what I was really doing was hopping between block delimiters most of the time, so I uninstalled all of them and created a keymap that works faster and requires only one plugin Hop.nvim, which I already use to obtain EasyMotion like movements. Here's the keymap, you can customize it to your liking to add common characters where you hop to (be careful as it is not a regular regex expression):
- Always Pin Your Neovim Plugins
- (Neo)Vim motions on speed
-
sneak vs lightspeed vs vanilla
I prefer to use Hop with :HopWord. It just highlight every word in buffer. f({char}) ({char})
-
Launch a `/` search only in the visible part of a buffer
If you are interested in a plugin solution, there is HopPattern in https://github.com/phaazon/hop.nvim
What are some alternatives?
nvim-treesitter-textobjects
lightspeed.nvim - deprecated in favor of leap.nvim
wildfire.vim - Smart selection of the closest text object
leap.nvim - Neovim's answer to the mouse 🦘
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.
vim-easymotion - Vim motions on speed!
coc.nvim - Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
vim-sneak - The missing motion for Vim :athletic_shoe:
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.
AceJump - 🅰️ single character search, select, and jump
vim-textobj-indent - Vim plugin: Text objects for indented blocks of lines
vim-dadbod-ui - Simple UI for https://github.com/tpope/vim-dadbod