每当我在我的机器上加载VIM 7.0时,我都知道该程序从路径/usr/share/vim/vim70/
加载了很多东西。现在我已在本地安装(在路径./vim74/src/vim
)新版本的VIM,因为我不是sudo用户。我遇到的问题是,程序似乎正在搜索不存在的目录中的文件,即/usr/local/share/vim/
。我无法创建这样的目录,所以我想知道如何设置vim以查找正确的目录?
作为参考,我收到错误消息,如
Error detected while processing /home/hep/flr09/.vimrc:
line 51:
E484: Can't open file /usr/local/share/vim/syntax/syntax.vim
Warning: Cannot find word list "en.utf-8.spl" or "en.ascii.spl"
line 292:
E484: Can't open file /usr/local/share/vim/syntax/syntax.vim
Press ENTER or type command to continue
或喜欢
Warning: Cannot find word list "en.utf-8.spl" or "en.ascii.spl"
Error detected while processing /home/hep/flr09/.vimrc:
line 292:
E484: Can't open file /usr/local/share/vim/syntax/syntax.vim
Press ENTER or type command to continue
答案 0 :(得分:4)
以下命令在/home/username/foo/
及其所有支持文件中安装Vim:
$ ./configure --prefix=/home/username/foo && make && make install
它将创建以下子目录并运行该自定义Vim将永远不会从/home/username/
以外的任何位置源文件:
/home/username/foo/bin/
/home/username/foo/share/
…