I always wondered why vim is missing some indentation files that would be convenient for everyday life. Example. I sometimes have to deal with really confused apache ( /etc/apache2/sites-available/*) configuration files . It is not possible to undo them correctly vim. With apache configuration files, I usually try to improve indentation by typing
:set ft=xml
gg=G
:set ft=apache
I know that Apache configuration files are not XML and that XML indentation does not work here great, but at least it is better than every configuration line in the first column. There is a vim script that works correctly, but I have to install it on all Linux systems. If you take this plugin as an example: since 2007 - why has it never been in the vim release?
source
share