From: Simon L. <wzh...@sp...> - 2004-07-13 12:48:16
|
> E.g. Here on FreeBSD (5.2-current), vim is installed to > /usr/local/share/vim/vim63/ with no 'vimfiles' sub-directory. By default or when you compile your own Vim? > I think > it's better to check $VIMRUNTIME to support various vim installations. System wide installation can only reside in $VIM/vimfiles/doc. That is the only make-sense location. So maybe we can detect whether Vim is installed in /usr or /usr/local > > hmm. The only reason I choosed /usr is because it has a better chance of > > 'work > > out of box'. What would you prefer? Auto-detection? > > > > I dunno if it's a (loose?) convention. But usually all those manually > installed software goes to /usr/local/share. (That is, default prefix is > /usr/local). Not a big deal, anyway. Yes. That is the convention and is exactly the reason why I choose /usr instead of /usr/local: only a small portion of user will compile his own Vim. So the user's Vim is more likely to be in /usr. Anyway, I think it is OK to do a 'which vim' for auto-detection. Is that OK? > > > 3) The '-D' option of 'install' is a GNU/Linux style option, whereas > BSD install does not have this option but '-d' instead. > (Back to use mkdir & cp?) hmm. I never used BSD myself. What if we 'mkdir' explicitely and leave out the '-D' ? lang2 -- Simon Liang wzh...@sp... |