On Tuesday, November 17, 2015 at 10:07:40 AM UTC-6, Paolo Bolzoni wrote:
> Dear list,
>
> I would like to disable all the "smart" auto indenting. I just want
> the cursor to align to the previous line non space character. I will
> press tab or << to fix in the case it is wrong.
>
> I set this lines from the wiki in the ~/.vimrc, but it is not enough.
>
> set autoindent
> set nocindent
> set nosmartindent
> set indentexpr=
>
> What should I check? Am I missing some other settings?
>
>
> Cheers,
> Paolo
My guess is your filetype settings are turning indent back on after you've turned them off in your .vimrc.
Do you have "filetype plugin indent on" in your .vimrc? Or maybe "filetype indent on"?
If so, remove the word "indent" and filetype-based indentation rules will be turned off.
If that's not the problem, then ":verbose set cindent? smartindent? indentexpr?" should tell you what they are set to and which script set them that way. Run this command after you notice the unwanted behavior.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Tuesday, November 17, 2015
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment