1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

日本語vimを自前ビルド

Posted at

はじめに

vimのリポジトリ https://github.com/vim をそのままビルドしたら日本語化されなかったので、メモ。

知識

  • 正常に日本語化されているvimがある環境では share/vim/vim81/lang ディレクトリ内に ja/LC_MESSAGES/vim.mo ファイルがあるが、そうでない環境には存在しない。
  • このファイルを生成するには vim のビルド時に gettext パッケージに含まれる msgfmt コマンドが必要のようだ。
  • msgfmt コマンドがなくても、vimのビルドは問題なく通ってしまう。

手順

sudo aptitude install gettext
git clone git@github.com:vim/vim.git
cd vim
./configure --prefix=$HOME
make
make install

ついでに

日本語マニュアルも導入しておく。

cd ~/.vim
mkdir -p pack/vimdoc-ja/start
cd pack/vimdoc-ja/start
git clone git@github.com:vim-jp/vimdoc-ja.git
1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?