安装 vim 到本地目录时缺少功能

安装 vim 到本地目录时缺少功能

--prefix我尝试通过在运行时给出命令来在本地目录中安装 vim ./configure。更具体地说,这是我所做的:

# Installed ncurses locally on $HOME/local/gpu2
cd vim/src
LDFLAGS=-L$HOME/local/gpu2 ./configure --prefix=$HOME/local/gpu2
make
make install

根据答案这里

我似乎已成功安装了它$HOME/local/gpu2/。但是,我运行vim后发现有很多东西没有正常运行。例如,输入

  • :Ex给了我错误:E492: Not an editor command: Ex
  • :syntax on给出了错误:E484: Can't open file "/home/tshmak/local/gpu2"/share/vim/syntax/synta x.vim。请注意目录名称中插入的引号。
  • :help给了E433: No tags fileE149: Sorry, no help for help.txt

有人可以解释一下哪里出了问题,或者我应该如何编译 vim?


编辑:

根据 @iskyfire 的要求,以下是的输出vim --version

VIM - Vi IMproved 8.1 (2018 May 18, compiled Aug  5 2020 15:53:06)
Included patches: 1-2214
Compiled by tshmak@gpu-server2
Huge version without GUI.  Features included (+) or not (-):
+acl               -farsi             -mouse_sysmouse    -tag_any_white
+arabic            +file_in_path      +mouse_urxvt       -tcl
+autocmd           +find_in_path      +mouse_xterm       +termguicolors
+autochdir         +float             +multi_byte        +terminal
-autoservername    +folding           +multi_lang        +terminfo
-balloon_eval      -footer            -mzscheme          +termresponse
+balloon_eval_term +fork()            +netbeans_intg     +textobjects
-browse            +gettext           +num64             +textprop
++builtin_terms    -hangul_input      +packages          +timers
+byte_offset       +iconv             +path_extra        +title
+channel           +insert_expand     -perl              -toolbar
+cindent           +job               +persistent_undo   +user_commands
+clientserver      +jumplist          +postscript        +vartabs
+clipboard         +keymap            +printer           +vertsplit
+cmdline_compl     +lambda            +profile           +virtualedit
+cmdline_hist      +langmap           -python            +visual
+cmdline_info      +libcall           -python3           +visualextra
+comments          +linebreak         +quickfix          +viminfo
+conceal           +lispindent        +reltime           +vreplace
+cryptv            +listcmds          +rightleft         +wildignore
+cscope            +localmap          -ruby              +wildmenu
+cursorbind        -lua               +scrollbind        +windows
+cursorshape       +menu              +signs             +writebackup
+dialog_con        +mksession         +smartindent       +X11
+diff              +modify_fname      -sound             +xfontset
+digraphs          +mouse             +spell             -xim
-dnd               -mouseshape        +startuptime       -xpm
-ebcdic            +mouse_dec         +statusline        +xsmp_interact
+emacs_tags        -mouse_gpm         -sun_workshop      +xterm_clipboard
+eval              -mouse_jsbterm     +syntax            -xterm_save
+ex_extra          +mouse_netterm     +tag_binary        
+extra_search      +mouse_sgr         -tag_old_static    
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: ""/home/tshmak/local/gpu2"/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H     -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1       
Linking: gcc   -L/home/tshmak/local/gpu2/lib -L/usr/local/lib -Wl,--as-needed -o vim    -lSM -lICE -lXt -lX11 -lXdmcp -lSM -lICE  -lm -lncurses -lnsl  -lacl -lattr -ldl           

相关内容