I\'ve installed a fresh Arch Linux system on my laptop and downloaded the vim package.
I haven\'t altered the .vimrc file, but the syntax highlighting doesn\'t seem to w
On my Ubuntu 18.04 system i.e. c-highlighting works but Icinga2 config file highlighting being provided by the vim-icinga2
package does not. Quote from https://packages.debian.org/sid/vim-icinga2:
As per the Debian vim policy, installed addons are not activated automatically, but the "vim-addon-manager" tool can be used for this purpose.
Executing vim-addon-manager -w install icinga2
following a regular vim-icinga2
package installation solved the issue. The -w
option forces a system wide rather than a just per current user activation. Notice that executing vim-addon-manager
without arguments yields a list of 39 modes being disabled by default:
> vim-addon-manager
# Name User Status System Status
align removed removed
alternate removed removed
...
icinga2 removed installed # Due to above command
...
If you do miss highlighting chances are your mode is among this list.
NB: Ubuntu 18.04 seemingly inherits Debian's policy. None of the above answers solved my issue. No ~/.vimrc
configuration or manual activation was being required after the above described activation.