LoginSignup
8
14

More than 3 years have passed since last update.

Vim のインストール(ソースから行う場合)

Last updated at Posted at 2017-05-30
  1. Vim の最新バージョンをインストールする手順を備忘録的にまとめました

前提条件

  • なるべく公式の手順に則ったやり方にする
  • CentOS の環境は Vagrant で作成している
  • Git をインストール済み
  • バージョン情報は以下
OS・ミドルウェア バージョン
CentOS 7.3
Git 2.26.0
Vim 8.0

作業手順

  1. インストールに必要なライブラリをインストール

    $ sudo yum install -y ncurses-devel make gcc
    
  2. Vim のソースをダウンロード

    $ cd /usr/local/src/
    $ sudo git clone https://github.com/vim/vim.git
    
  3. ソースをコンパイル

    $ cd vim/src
    $ sudo make
    $ sudo make install
    

次のように出力されていることを確認

$ vim --version
VIM - Vi IMproved 8.0 (2016 Sep 12, compiled May 29 2017 06:24:12)
Included patches: 1-606
...(以下省略)

参考

以下のリンクを参考にしました。
- The Vim repository at GitHub
- CentOS 7 に Vim エディタをインストール
- 安藤翔のブログ - CentOS7に vim をインストール
- Vim を設定する

8
14
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
14