DEV Community

Roy
Roy

Posted on

Answer: set expandtab in .vimrc not taking effect

From the documentation on expandtab:

This option is reset when the paste option is set and restored when the paste option is reset.

BTW, you probably don't want paste to be set all the time. It's commonly used for pasting into a terminal Vim to avoid messing up indentation…

Oldest comments (0)