第一步:核心

首先把必须的依赖一次性装好

sudo apt-get install build-essential openssl curl libevent-dev autoconf ncurses-dev automake pkg-config

tmux安装

163源太旧,里面的软件版本都比较低,所以推荐源码安装

git clone https://github.com/tmux/tmux.git
cd tmux
sh autogen.sh
./configure && make
sudo make install

这是由于pkgconfig没有安装,sudo apt-get install pkg-config安装即可

需要安装一下libevent-dev

# 拉取插件管理软件
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# 拉取自己备份的配置文件
git clone https://github.com/luofei2011/linux-files.git
mv linux-files/.tmux.conf ~/
tmux -2

prefix + I会安装配置文件中的插件

vim7.4+安装

源码编译基本不会出错

git clone https://github.com/vim/vim.git
cd vim/src
make && sudo make install
sudo apt-get install ctags
cd
# 会在当前目录创建一个ctags文件,可删掉
ctags -R