vimをコンパイル

背景

  • rafi/vim-configを使いたかった
    • Ubuntu 2023.04 のaptパッケージのバージョンは7
      • 2023/05時点、rafi/vim-configが要求するneovimのバージョンが8以上だった
        • このためコンパイルすることにした
      • lazy.nvim は neovim8以上を要求していた。

オフィシャルの手順

コンパイル

# neovim
RUN git clone --depth 1 https://github.com/neovim/neovim.git
RUN apt -y install gettext
RUN cd neovim && \
make CMAKE_BUILD_TYPE=Release && \
make install

CentOS 6.3 vimのコンパイル

CentOS 6.3にVim 7.3をインストールする #CentOS - Qiita

sudo yum install lua lua-devel lua-static mercurial ncurses-devel
mkdir -p ~/tmp/vim/
hg clone https://vim.googlecode.com/hg/ ~/tmp/vim
cd ~/tmp/vim
./configure
./configure --enable-multibyte --with-features=huge --enable-fail-if-missing --enable-luainterp=dynamic --enable-rubyinterp --enable-luainterp --disable-selinux --prefix=/usr/local
make && sudo make install