[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/2] Distribute vim syntax highlighting
From: |
Thomas Weißschuh |
Subject: |
Re: [PATCH 1/2] Distribute vim syntax highlighting |
Date: |
Fri, 12 Mar 2021 18:02:09 +0100 |
Hi Jose,
On Fr, 2021-03-12T17:26+0100, Jose E. Marchesi wrote:
> +vimdir = $(datadir)/vim/vimfiles
> +
> +nobase_dist_vim_DATA = syntax/poke.vim ftdetect/poke.vim
>
> I am not familiar with installed VIM configuration files. I looked in
> the /usr/share/vim/ directory in my Debian system and found:
>
> /usr/share/vim:
>
> addons/
> ftdetect/
> ftplugin/
> indent/
> syntax/
>
> registry/
>
> vim80/
>
> vimfiles -> /etc/vim/
> vimrc
> vimrc.tiny
>
> Note how vimfiles points to /etc/vim/. That makes me wonder, shouldn't
> we define `vimdir' as $(datadir)/vim/addons?
I don't actually have /usr/share/vim/vimfiles on my Debian 10 machine at all.
To which package does it belong to?
The 'addons' subdirectory is user by the vim-addon-manager which is a
third-party tool which seems to be preferred by Debian.
(supported by https://packages.debian.org/buster/dh-vim-addon )
The vanilla vim way would be to put these files into 'vimfiles'.
This is also what for example ArchLinux does.
I would argue to put it into 'vimfiles' and let Debians package system
repackage them as preferred.
'vimfiles' is also picked up on Debian, so even when installing manually
everything should work.
Thomas