Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am working directly on a dev server and want to build my own vim, for my purposes, not for all system users. The build scenario is:

hg clone https://vim.googlecode.com/hg/ vim
cd vim/src
./configure --enable-rubyinterp --enable-multibyte

The result of ./vim --version is:

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jun 22 2011 09:35:46)
Included patches: 1-230
Compiled by aeg@dev
Normal version without GUI.  Features included (+) or not (-):
-arabic +autocmd -balloon_eval -browse +builtin_terms +byte_offset +cindent 
-clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments 
-conceal +cryptv -cscope +cursorbind +cursorshape +dialog_con +diff +digraphs 
-dnd -ebcdic -emacs_tags +eval +ex_extra +extra_search -farsi +file_in_path 
+find_in_path +float +folding -footer +fork() +gettext -hangul_input +iconv 
+insert_expand +jumplist -keymap -langmap +libcall +linebreak +lispindent 
+listcmds +localmap -lua +menu +mksession +modify_fname +mouse -mouseshape 
-mouse_dec -mouse_gpm -mouse_jsbterm -mouse_netterm -mouse_sysmouse 
+mouse_xterm +multi_byte +multi_lang -mzscheme +netbeans_intg +path_extra -perl
 +persistent_undo +postscript +printer -profile -python -python3 +quickfix 
+reltime -rightleft +ruby +scrollbind +signs +smartindent -sniff +startuptime 
+statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white 
-tcl +terminfo +termresponse +textobjects +title -toolbar +user_commands 
+vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore 
+wildmenu +windows +writebackup -X11 -xfontset -xim -xsmp -xterm_clipboard 
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/local/share/vim"
gcc -c -I. -Iproto -DHAVE_CONFIG_H     -g -O2 -D_FORTIFY_SOURCE=1      
Linking: gcc   -L.  -rdynamic -Wl,-export-dynamic  -L/usr/local/lib -Wl,--as-needed -o vim       -lm -lncurses -lnsl         -lruby1.8 -lpthread -lrt -ldl -lcrypt -lm  -L/usr/lib

When I open the just-built vim I get following:

Error detected while processing /home/aeg/.vimrc:
line  148:
E484: Can't open file /usr/local/share/vim/syntax/syntax.vim

The problem is because there is no /usr/local/share/vim. I have my plugins in ./vim and I want vim to look for this path.

It is Debian, and /usr/bin/vim settings differ fall-back for $VIM: "/usr/share/vim"

share|improve this question
up vote 3 down vote accepted

It looks like you forgot to run make install.

If you did run make install, but none of your vim files are found under /usr/local/share/vim, then perhaps you have a permissions problem -- that is, you're not allowed to install files there.

If the latter is true, then just build it with a install location set to a place you do control:

$ cd vim/src
$ ./configure --enable-rubyinterp --enable-multibyte --prefix=/home/aeg/myvim
$ make
$ make install
$ export PATH=/home/aeg/myvim/bin:$PATH
$ vim
share|improve this answer
Thanks a lot, Mark! The problem is solved. – Anton Egorov Jun 23 '11 at 10:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.