Stephen R Laniel <[EMAIL PROTECTED]> wrote on 2006.04.09 02:12:02: > My ~/.vimrc file contains these lines: > > source $VIMRUNTIME/ftplugin/man.vim > source $VIMRUNTIME/syntax/syntax.vim > > but recently one of the Debian upgrades must have changed > $VIMRUNTIME; it now points to /usr/share/vim, whereas what I > want it to point to is something like > /usr/share/vim/vimcurrent (=/usr/share/vim/vim64). This > suggests to me that $VIMRUNTIME isn't the variable I want to > be using there; what variable reliably points to the proper > directory? > > Likewise, recent Debian changes seem to have hosed :help; if > I try to do :help, I get > > 'Sorry, help file "/usr/share/vim/doc/help.txt" not found' > > 'help.txt', as it turns out, is in > /usr/share/vim/vim64/doc/help.txt . So again, it looks like > some internal environment variable got screwed up; which > variable points to the proper base directory for vim's > documentation? > > I'm looking for something other than Debian-specific > answers, because I carry my .vimrc file around to lots of > different Unices and I'd like it to work on all of them. I > hope there's a good platform-independent set of variables > for me to use. > > Thanks very much, > Steve > > -- > Stephen R. Laniel > [EMAIL PROTECTED] > Cell: +(617) 308-5571 > http://laniels.org/ > PGP key: http://laniels.org/slaniel.key > [attachment "signature.asc" deleted by panshizhu/Jinglun]
You may use this instead: runtime ftplugin/man.vim runtime syntax/syntax.vim the above is essentially the same as source $VIMRUNTIME/ftplugin/man.vim but works much better in different platforms. since it will automatically find the $VIMRUNTIME in a more reliable way. IMO, the "source" command should only be used to source scripts which is not in $VIMRUNTIME directory. -- Sincerely Pan, Shizhu. ext: 2221
