Sublime Text 2 を使うためのメモ
Download
有償で $49。機能制限はないが、試用中 (UNREGISTERED) の間は保存のタイミングで支払を勧めるダイアログが表示される。
Package Control をインストールする
Package (拡張機能) を手軽に管理するために "Package Control" をインストールする。 [View] - [Show Console] を選び、表示された入力エリアに次のコマンドを入力する。
import urllib2,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();os.makedirs(ipp) if not os.path.exists(ipp) else None;open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read())
日本語環境を整える
Shift-JIS に対応させる
要望はされているが現在は未対応 (http://sublimetext.userecho.com/topic/46359-please-support-shift-jis-encoding-japanese/) ファイルを開いた際に UTF8 に変換し、保存時に Shift-JIS に戻す "ConvertToUTF8" があるので、これを使う。
IME をインラインで変換できるようにする
[Install Package] で [IMESupport] をインストールする。
Theme
[Install Package] で "Soda Dark"。
[Settings - User]
{ "font_face": "Source Sans Pro", "font_size": 11.0, "ignored_packages": [ "Vintage", "ZenCoding" ], "indent_to_bracket": true, "smart_indent": true, "tab_size": 4, "theme": "Soda Dark.sublime-theme", "translate_tabs_to_spaces": true, "use_tab_stops": true }