History Report a problem
Article Edit this page Discussion

Set VIMRUNTIME within vimrc

From Vim Tips Wiki

(Redirected from VimTip510)
Jump to: navigation, search
 

Tip 510Previous TipNext Tip

Created: July 18, 2003 Complexity: basic Author: maxiangjiang Minimum version: 6.0 Karma: 12/8 Imported from: Tip#510


In general, $VIMRUNTIME cannot be set within vimrc.

This tip is for those who want to avoid setting $VIMRUNTIME as an enviromental variable (either rc file on Unix or enviroment on Windows).

I found the following steps worked on my PC and Unix:

  • Find out your $VIM (on Windows, it is the directory where gvim.exe lives).
  • Create a directory called doc under $VIM (now, we have $VIM/doc).
  • Copy help.txt from official $VIMRUNTIME/doc (now, we have $VIM/doc/help.txt).

Now, we can set $VIMRUNTIME within vimrc, for example

let $VIMRUNTIME='C:/usr/share/vim/vim63'

I find it is useful on PC especially when I have cygwin installed, thus a single copy of VIMRUNTIME can be shared for both vi (cygwin version) and gvim.exe (win32 version).

[edit] Comments


Rate this article:

Share this article:

Hubs Highlights International Sites Wikia messages
Entertainment
Gaming
Cartoons & Comics
Science Fiction
Hobbies
Sports
See all...
Grand Theft Auto
Terminator Wiki
Legend of Zelda Wiki
Flash Gordon
Everquest II Wiki
Yo-Yo Wiki
German
Spanish
Chinese
Japanese
More...
Wikia is hiring for several open positions
Send this article to a friend
"Set VIMRUNTIME within vimrc"
 
 
Hi!

I thought you'd like this page from Wikia!

http://vim.wikia.com

Come check it out!
Send confirmation