ubuntuにvimをインストール
ubuntuにデフォルトでインストールされているvimは最低限の機能のみを持った vim-tinyというやつらしいので、通常のvimをインストールすることにする。
$ sudo apt-get install vim
インストールが終わったら設定ファイルを編集して好みの設定に変更する。
vimの設定ファイルは「~/.vimrc」で今回は以下を記述。
set nocompatible set fileformats=unix,dos,mac set title set number set showmatch syntax on set autoindent set tabstop=4 set shiftwidth=4 set smartindent set encoding=utf-8 set termencoding=utf-8 set fileencoding=utf-8 set fileencodings=ucs-bom,euc-jp,cp932,iso-2022-jp set fileencodings+=,ucs-2le,ucs-2,utf-8 colorscheme evening