Skip to content

Instantly share code, notes, and snippets.

@otaon
Created October 7, 2018 11:06
Show Gist options
  • Save otaon/761ca71b9cf9109457391f7ccc981743 to your computer and use it in GitHub Desktop.
Save otaon/761ca71b9cf9109457391f7ccc981743 to your computer and use it in GitHub Desktop.
Vim のビルド方法

gitからclone

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

コンフィグ

prefixにvimのインストール先を設定する。

$ cd ~/git/vim 
$ ./configure \
--prefix=$HOME/.local \
--with-features=huge \
--enable-multibyte \
--enable-rubyinterp \
--enable-pythoninterp \
--enable-python3interp \
--enable-perlinterp \
--enable-fontset \
--enable-luainterp \
--enable-fail-if-missing

make install

$ make install

PATHを通す

場合によっては最初からPATHが通っている。

$HOME/.profile*

# if running bash
if [ -n "$BASH_VERSION" ]; then
    # include .bashrc if it exists
    if [ -f "$HOME/.bashrc" ]; then
	. "$HOME/.bashrc"
    fi
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
    PATH="$HOME/.local/bin:$PATH"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment