2 ms·
http://www.kylheku.com/cgit/c-snippets/tree/autotab.c http://www.kylheku.com/cgit/c-snippets/tree/autotab.c With this, I instantly conform to how the file is f
by kazinator 9y ago
http://www.kylheku.com/cgit/c-snippets/tree/autotab.c http://www.kylheku.com/cgit/c-snippets/tree/autotab.c
With this, I instantly conform to how the file is formatted. Is it 3 space indentation, made with a mixture of 8-tabs and spaces? Autotab will figure it out, spit out the Vim params, and you're modifying away without causing spurious diffs in version control.
You have to learn to use Ctrl-T for indent and Ctrl-D for deindent in Vim; those obey the shiftwidth and generate indentation according to the shiftwidth, tabsize and expandtab setting.