vim-textobj-entire
vim-sleuth
vim-textobj-entire | vim-sleuth | |
---|---|---|
10 | 27 | |
417 | 1,797 | |
- | - | |
0.0 | 0.0 | |
almost 2 years ago | about 2 months 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-textobj-entire
-
How do you "copy all"?
I agree that ggVG is fine but not with the custom leader to copy to clipboard part. If you're gonna have to remember something might as well use a text object instead, that way you get the full range of actions and not just the hardcoded mapping. I use kana/vim-textobj-entire that provides e for entire buffer, so copying would be yie and life is smooth. There's a bunch of text object plugins, just get one or write it yourself would be my advice.
- Installing argtextobj.vim
-
Need some help with keybindings.
I like the entire document text object: https://github.com/kana/vim-textobj-entire
- What extra and useful textobj does vim have?
-
Select all and move cursor back
You should make your life easier and get the entire text object plugin. This is the easiest way to act one the entire buffer with no surprises, although it still does change the cusror position sometimes, but I still recommend it.
-
What are your must-have vim/nvim extensions?
kana/vim-textobj-entire - Make entire buffer available as a text object
-
What are your favorite "compound" motions?
I now use entire text object for this with vie, which is more mentally coherent, for me, than ggVG.
-
FAVOURITE PLUGINS
kana/vim-textobj-entire adds e as text object for entire buffer
-
Had my 7 year old doing spelling words on VIM. Since she has not done much text editing it was effortless to get her thinking in "modes."
die (delete in entire) with the plugin vim-textobj-entire
-
How can I return to the last cursor position after using formatprg and gggqG?
I would suggest adding the text object "entire", either by making your own omap, or using a plugin like vim-textobj-entire.
vim-sleuth
-
How can I set my TAB key to be 4 spaces indent?
In addition to setting tabstop and shiftwidth, you might also like this plugin: https://github.com/tpope/vim-sleuth
-
[HELP] File type specific plugin is ignored
vim-sleuth auto detects tab size so...
-
What did I do to deserve this kind of torture
Just add https://github.com/tpope/vim-sleuth and never worry about it again.
- HELP: save options in sessions
-
Learning Rust, I didn't expect such a backstab
At the end of the day I don't really care which a project goes with, I've always just used vim-sleuth to automatically set my tab key to input whatever the current file's indentation is.
-
Trouble detecting shiftwidth correctly
VsCode has an internal function from auto-detecting indentation, while my config uses vim-sleuth with indent-blankline.nvim.
-
Builtin EditorConfig support
If you work a lot on legacy codebases, https://github.com/tpope/vim-sleuth is probably more what you need than editorconfig, as it will work even when one is not present.
-
New plugin for handling soft/hard line wrapping - wrapping.nvim
The primary advantage of using it is that it has built in heuristics for detecting line wrapping when opening a file (with some Treesitter magic for Markdown to make it more accurate), and also allows for manual swapping between wrapping types. You can think of it as the wrapping equivalent to vim-sleuth.
-
How do I force Neovim to always give me two space indents (or the correct indent) everywhere.
I just found about Tim Pope's sleuth: https://github.com/tpope/vim-sleuth It supports editorconfig but it also seems to have just better heuristics when an editorconfig file isn't present, so I just decided to replace `editorconfig-vim` with it.
-
How to set indentation dynamically based on language?
Another solution is try sleuth.vim, that sets automatically your indentation based on the project, buffer and editorconfig
What are some alternatives?
tidy.nvim - A small Neovim plugin to remove trailing whitespace and empty lines at end of file on every save
vim-polyglot - A solid language pack for Vim.
vim-textobj-user - Vim plugin: Create your own text objects
nvim-autopairs - autopairs for neovim written in lua
telescope.nvim - Find, Filter, Preview, Pick. All lua, all the time.
limelight.vim - :flashlight: All the world's indeed a stage and we are merely players
pounce.nvim - Incremental fuzzy search motion plugin for Neovim
vim-vinegar - vinegar.vim: Combine with netrw to create a delicious salad dressing
vim-sort-motion - Vim mapping for sorting a range of text
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
deol.nvim - Dark powered shell interface for NeoVim/Vim8
yapf - A formatter for Python files