LoginSignup
3
0

More than 3 years have passed since last update.

Ubuntu20.04でvimをビルドする方法

Last updated at Posted at 2020-12-18

Ubuntu20.04でvimをビルドする方法

最新vimの開発が活発なので最新のvim気になりますよね。
私はライトvimmerですが、それでも最新が気になります。

この情報は、ほぼ公式ページ通りですが、公式は情報がすこし古いのでUbuntu20.04でビルドできるように整理するのが目的です。

ライブラリ・言語のインストール

ビルドに必要なライブラリと言語 python, ruby, lua, perlあたりも入れておきます

sudo apt install -y git build-essential autoconf automake cproto gettext
sudo apt install -y libacl1-dev libgpm-dev libgtk-3-dev libtinfo-dev libxmu-dev libxpm-dev libncurses-dev 
sudo apt install -y libperl-dev liblua5.2-0 liblua5.2-dev libluajit-5.1-dev lua5.2 luajit python-dev python3-dev ruby-dev

vimのclone

git clone https://github.com/vim/vim.git

ビルド&インストール

./configure  --prefix=/usr/local/ --with-features=huge --enable-multibyte --enable-gpm --enable-cscope --enable-perlinterp --enable-python3interp --enable-rubyinterp --enable-luainterp --enable-acl --enable-fontset --enable-xim --enable-terminal --enable-fail-if-missing --with-luajit --with-x
make
sudo make install

pyenvのPythonでビルドしたい場合

--with-python3-command=を使用してpyenvのpythonのパスを指定しましょう

--enable-python3interp --with-python3-command=$(echo $HOME)/.anyenv/envs/pyenv/shims/python

./configure  --prefix=/usr/local/ --with-features=huge --enable-multibyte --enable-gpm --enable-cscope --enable-perlinterp --enable-python3interp --with-python3-command=$(echo $HOME)/.anyenv/envs/pyenv/shims/python --enable-rubyinterp --enable-luainterp --enable-acl --enable-fontset --enable-xim --enable-terminal --enable-fail-if-missing --with-luajit --with-x
make 
sudo make install

最後に

朝起きてPCを起動したらgit pullしてビルド&インストールしましょう。
最新のvim体験があなたをまっています。

3
0
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
3
0