Answers:
make install DESTDIR=~/.local
,然后做一个符号链接~/bin
到~/.local/bin/vim
。
/home/apache/.local/usr/local/share/vim/vim72
完成这两个步骤后,我得到了vim目录。
创建本地用户路径:
mkdir -p ~/usr/local
ncurses
从此处下载最新版本:http : //ftp.gnu.org/pub/gnu/ncurses/
安装ncurses
:
cd <path_to_ncurses_downloaded_folder>
tar -xzvf <ncurses>.tar.gz
cd <ncurses_extracted_folder>
./configure --prefix=$HOME/usr/local
make
make install
vim-repo
与克隆
git clone https://github.com/vim/vim.git
使用以下命令安装vim:
cd vim/src
LDFLAGS=-L$HOME/usr/local/lib ./configure --prefix=$HOME/usr/local
make
make install
设置PATH与
export PATH=$PATH:$HOME/usr/local/bin
.local
还是一个普通名称?