15

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!

you are viewing a single comment's thread
view the rest of the comments
[-] ExtremeDullard@lemmy.sdf.org 2 points 2 years ago

I tried issuing the commands inside Neovim itself, just in case it was a configuration loading issue. They don't do anything. It's maddening.

If you want to reproduce it, open a Makefile type a target, ENTER, and no matter what any autoindent setting is set to, the next line is indented by one tab, as if writing the recipe for that target. Nothing I do by hand, inside Neovim, after it's loaded and ready to use, will change that.

this post was submitted on 15 Jun 2024
15 points (89.5% liked)

Neovim

2932 readers
1 users here now

founded 3 years ago
MODERATORS