-
Notifications
You must be signed in to change notification settings - Fork 71
Set nosmartindent to avoid comments auto-indenting to first column #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Agreed, without having looked into it. Should be a trivial change (which should include a test). A PR for this would be welcome, of course! |
I could not reproduce it, using both (not on master though but while fixing something else) |
Closing then. Feel free to re-open if we missed something. |
Note that this can fix it without disabling
|
@bharadwaj-raju |
Yes, I can. I don't have Removing the |
What Vim/Neovim version? |
Smartindent is set.
|
I could still not reproduce it yesterday. Can you try it with a minimal init.vim, please, and provide this here?! |
set nocompatible
syntax on
filetype plugin on
set smartindent
set smartindent cinwords=if,else,elif,try,except,finally,while,for,def,class
Reproducible. |
Thanks for the test case. As we can see it's not caused by this plugin (which I assumed). From
Which is what you suggested. I could imagine adding this to Python buffers via |
For example, the cursor being
^
:say you now type
#
, you get:instead of:
The reason is smartindent. I think your indent plugin should un
setlocal
it by default.The text was updated successfully, but these errors were encountered: