Missing vim indent files

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?

+4
source share
1 answer

The accompanying [indent] script must send a Bram file (Vim BDFL) to be included (and commit it to be saved); that the process is working. So, if you want to have this at runtime, check with the maintainer or (as the last update of this script on vim.org from 2007, and it may be absent), ask the vim_dev mailing list to volunteer as such.

... , . - , ~/.vimrc ; script ~/.vim/indent/, .

+1

All Articles