vim files
Olly Betts
olly at survex.com
Sun Jul 2 14:33:23 BST 2006
On Sun, Jul 02, 2006 at 10:11:47AM +0100, Loeffler, David wrote:
> > These files really should have a licence (as should Dave's syntax file
> > for .svx files) - is it your intention that they're released under the
> > GPL?
>
> That was my intention for the original syntax file, certainly.
OK, I'll add the licence bolierplate to that.
> > I'm just trying to get the build system to install these automatically
> > but the directory appears to vary even between Linux distros
>
> Can you get the build scripts to check if $VIMRUNTIME is set, and if not,
> run "gvim --version" and interrogate its output?
Well, gvim may not be installed, but "vim --version" reports the same
information.
But on my box that tells me:
fall-back for $VIM: "/usr/share/vim"
And I should be installing the files in /usr/share/vim/addons here.
That directory is in runtimepath, set in this file:
system vimrc file: "$VIM/vimrc"
By this line:
set runtimepath=~/.vim,/usr/share/vim/addons,/usr/share/vim/vimfiles,/usr/share/vim/vimcurrent,/usr/share/vim/vimfiles/after,/usr/share/vim/addons/after,~/.vim/after
So I don't think we can reliably get this by querying the vim config
because we can't reliably decide which directory there is the one we
want...
That's why I was thinking of simply checking the paths used by the vim
package on common setups. Alternatively we could just let the packaging
take care of installing it, and anyone building from source will have to
copy the files over for themselves.
Cheers,
Olly
More information about the Survex
mailing list