vim-python-pep8-indent
A nicer Python indentation style for vim. (by Vimjas)
vim-sleuth
sleuth.vim: Heuristically set buffer options (by tpope)
vim-python-pep8-indent | vim-sleuth | |
---|---|---|
12 | 27 | |
779 | 1,807 | |
0.3% | - | |
0.0 | 0.0 | |
over 1 year ago | 2 months ago | |
Ruby | Vim Script | |
Creative Commons Zero v1.0 Universal | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.
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-python-pep8-indent
Posts with mentions or reviews of vim-python-pep8-indent.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-06-02.
-
If you have treesitter, make sure to disable smartindent to have a sane and normal indentation, especially in Python
Interesting. I’ve always used default auto-indenting and explicitly turn it off in Treesitter as I’ve found it messes it up. The ultimately improvement for me has been this plugin.
-
How to use tabs instead of spaces in python for neovim 0.9 with editorconfig
Use Vimjas/vim-python-pep8-indent and forget about all your Python headaches.
-
Weird indentation on python
I've always been very happy with vim-python-pep8-indent. But you need to enable additional_vim_regex_highlighting in treesitter which currently does not play well with spell being on. Alternatively you can rely on the indent feature of treesitter but it's currently experimental and has some issues with python: * https://github.com/nvim-treesitter/nvim-treesitter/issues/4651 * https://github.com/nvim-treesitter/nvim-treesitter/issues/4650
- [Q] indentation question
-
Why autoindents never work properly with Python files?
Try this plugin for python indentation
-
Indenting for python using mason.nvim
A good old indentation plugin vim-python-pep8-indentation
-
[Q] Auto indentation for python files
The only thing that worked really well for me and which I still use is https://github.com/Vimjas/vim-python-pep8-indent
- what do you guys use treesitter for?
-
Question about nvim, LSP and auto-indenting code
https://github.com/Vimjas/vim-python-pep8-indent works well, but it's slow.
-
A few things I believe would help (neo)vim tremedously
Python requires a third party plugin to be usable, WTF?
vim-sleuth
Posts with mentions or reviews of vim-sleuth.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-05-29.
-
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?
When comparing vim-python-pep8-indent and vim-sleuth you can also consider the following projects:
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
vim-polyglot - A solid language pack for Vim.
nvim-autopairs - autopairs for neovim written in lua
limelight.vim - :flashlight: All the world's indeed a stage and we are merely players
neovim - Vim-fork focused on extensibility and usability
vim-vinegar - vinegar.vim: Combine with netrw to create a delicious salad dressing
lsp-format.nvim - A wrapper around Neovims native LSP formatting.
vim-glsl - Vim runtime files for OpenGL Shading Language
yapf - A formatter for Python files
vim-python-pep8-indent vs nvim-treesitter
vim-sleuth vs vim-polyglot
vim-python-pep8-indent vs nvim-autopairs
vim-sleuth vs nvim-autopairs
vim-python-pep8-indent vs vim-polyglot
vim-sleuth vs limelight.vim
vim-python-pep8-indent vs neovim
vim-sleuth vs vim-vinegar
vim-python-pep8-indent vs lsp-format.nvim
vim-sleuth vs nvim-treesitter
vim-python-pep8-indent vs vim-glsl
vim-sleuth vs yapf