Skip to content

Instantly share code, notes, and snippets.

@ko31
Last active January 17, 2023 11:21
Show Gist options
  • Save ko31/50e9bdbdc5e4f2da5e7d1f96361e78fb to your computer and use it in GitHub Desktop.
Save ko31/50e9bdbdc5e4f2da5e7d1f96361e78fb to your computer and use it in GitHub Desktop.
XServer に Vim をインストールする
# ncurses をインストール
mkdir ~/opt && cd $_
wget http://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.1.tar.gz
tar zxfv ncurses-6.1.tar.gz
cd ncurses-6.1
./configure --prefix=$HOME/local
make
make install
# Vim をインストール
cd ~/opt
git clone https://github.com/vim/vim.git
cd vim
./configure --with-features=huge --enable-fail-if-missing --prefix=$HOME/local --with-local-dir=$HOME/local
make
make install
# 環境設定
vi ~/.bashrc
# .bashrc に下記行を追加
export PATH=$PATH:$HOME/local/bin
alias vi='vim'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment