Autoindenting in gVim
You will laugh but being CEO, I often edit HTML code myself in good old vim (actually gVim, a Windows version) when building up sketches or changing production website pages.
Today I finally made myself research how to configure that mad gVim autoindenting when editing files. After looking it up in Google, I found how to remove the autoindenting at all. But that wasn’t exactly what I was seeking. Autoindening feature in Vim is ok, it just has insane shiftwidth, like 8 characters. At the point of giving up I actually RTFM and in usr_30.txt of the manual I found how to change it. For that you need to have a line like this:
set autoindent shiftwidth=2
in your vimrc file.
Now I’ll stop deleting all the extra tabs every time I go new line. Now that I defeated this fatal, very personal mental defect, I’m going to become a calm and sociable person, promise.
:wq
