I’m normally a straight vim user (just out of habit, no particular preference) and I’m giving neovim a spin. So far I like it but…

For the love of all that’s holy, how do I disable automatic indentation?

I have noautoindent set, nosmartindent set, filetype indent off, but neovim keeps inserting indentations. The only thing that works is setting paste on, but that’s not the right solution to this problem.

Please help. This is driving me nuts!

  • dream_weasel
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    5 months ago

    I think you’ll still want filetype indent on just as a matter of principle.

    Weird suggestion: have you rebooted lately? I find sometimes (rarely) I get a file that will fight me on indent until reboot for some reason, and I think it’s related to python updates but not sure. I’ve otherwise have never had problems.