これ僕.com:行動分析学マニアがおくる行動戦略

意図と行動のギャップから生じる「不自由さ」への挑戦。果たして僕たちに自由はあるのか?

gvim入れてみた

TerminalのVimで日本語の文章を書いていると、どうにも表示が乱れることが多い。特定の文字が原因っぽいけど・・・。
で、gvimならどうかな〜、と思い入れてみた。

いま入っているvimを削除

% sudo port uninstall vim

vimをダウンロードしておく

Local Ports Repositoryの構築

% sudo mkdir /opt/local/var/db/dports/sources/private
% cd /opt/local/var/db/dports/sources/privat
% sudo mkdir `ls -F1 /opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate1/ | grep '\/$'`

source.confを編集して、Local Ports Repositoryを参照するように。

% vi /opt/local/etc/macports/sources.con
# To enable your local ports repository, uncomment and customize the
# following line to point at your local dports directory
# Example: file:///Users/landonf/misc/macports/dports
file:///opt/local/var/db/dports/sources/private
#
# To get macports from the macports rsync server use:
# rsync://rsync.macports.org/release/ports/
rsync://rsync.macports.org/release/ports/

ダウンロードしたファイルを展開。

% sudo tar jxvf ~/Desktop/vim7.1.253.0.tbz2
 ...
% sudo tar jxvf ~/Desktop/cmigemo.1.3c_6.tbz2
 ...
% sudo portindex
Creating software index in /opt/local/var/db/dports/sources/private
Adding port editors/vim
Adding port textproc/cmigemo

Total number of ports parsed:   2 
Ports successfully parsed:      2        
Ports failed:                   0

確認。

% sudo port info cmigemo
cmigemo 1.3c, Revision 6, textproc/cmigemo (Variants: universal, utf8)
http://www.kaoriya.net/

C/Migemo is a set of a library and an application to search Japanese words incrementally, or a C version of Migemo originally written in Ruby.

Library Dependencies: libiconv, nkf
Maintainers: pelopor@nifty.com

% sudo port info vim 
Warning: Found 2 port vim definitions, displaying first one.
vim 7.1.253, editors/vim (Variants: universal, athena, gtk1, gtk2, motif, tiny, small, big, huge, multibyte, xim, perl, python, ruby, tcl, cscope, kaoriya, aqua, cocoa)
http://www.vim.org/

Vim is a virtually compatible, extremely enhanced version of the vi editor.

Library Dependencies: gettext, ncurses
Platforms: darwin freebsd
Maintainers: nomaintainer@macports.org

Install

% sudo port install cmigemo +utf8 
 ...
% sudo port install vim +huge +kaoriya +cscope +ruby +python +aqua +perl +macvim +multibyte 
 ...

実行

% gvim