![$VIM에 대한 잘못된 대체](https://linux55.com/image/2479/%24VIM%EC%97%90%20%EB%8C%80%ED%95%9C%20%EC%9E%98%EB%AA%BB%EB%90%9C%20%EB%8C%80%EC%B2%B4.png)
vim
저는 개발 서버에서 직접 작업하고 있으며 모든 시스템 사용자를 위한 것이 아닌 제 목적을 위해 자체 서버를 구축하고 싶습니다 . 빌드 시나리오는 다음과 같습니다.
hg clone https://vim.googlecode.com/hg/ vim
cd vim/src
./configure --enable-rubyinterp --enable-multibyte
make
결과 ./vim --version
는 다음과 같습니다.
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
-xterm_save
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/local/share/vim"
Compilation:
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
방금 빌드한 vim을 열면 다음이 표시됩니다.
Error detected while processing /home/aeg/.vimrc:
line 148:
E484: Can't open file /usr/local/share/vim/syntax/syntax.vim
문제는 /usr/local/share/vim이 없기 때문입니다. 내 플러그인이 있고 ./vim
vim이 이 경로를 찾길 원합니다.
데비안인데 /usr/bin/vim
설정이 다릅니다fall-back for $VIM: "/usr/share/vim"
답변1
달리는 것을 잊어버린 것 같습니다 make install
.
실행했지만 make install
거기에서 vim 파일을 찾을 수 없다면 /usr/local/share/vim
권한 문제가 있을 수 있습니다. 즉, 거기에 파일을 설치할 수 없습니다.
후자가 맞다면 설치 위치를 제어할 수 있는 위치로 설정하여 빌드하세요.
$ cd vim/src
$ ./configure --enable-rubyinterp --enable-multibyte --prefix=/home/aeg/myvim
$ make
$ make install
$ export PATH=/home/aeg/myvim/bin:$PATH
$ vim