Martin Sustrik
Martin Sustrik

Reputation: 813

How to install Vim plugins

I have my own language, the install package is created by autotools.

Part of the package is vim syntax highlighter. How should I install it? Are there any env vars I can rely on (path to vim's install dir etc.)? Any other tips?

Upvotes: 0

Views: 339

Answers (1)

romainl
romainl

Reputation: 196456

Vim's install process doesn't export or create any alias or environment variable. A few are usable in subshells started from Vim itself with :shell but they are gone as soon as you exit those subshells. Anyway, the directories that those elusive environment variables point to are not safe at all for, among others, the reason given by FDinoff.

If you can, tell your users to place that syntax script in $HOME/.vim/syntax/ (UNIX & Co.) or $HOME\vimfiles\syntax\ (Windows) and add the two lines below to their $HOME/.vimrc (UNIX) or $HOME\_vimrc (Windows):

filetype plugin indent on
syntax on

Upvotes: 1

Related Questions