メンバー > SGHR > SublimeText

長年愛用したemacsを手放しエディタをSublime Textに変えようかと思案中。
以下、設定メモ。

  • 導入したパッケージ
    • IMESupport : 日本語をインラインで入力できる。
    • sublemacspro : emacs風のキーバインド。
    • OrigamiEmacs : emacs風のキーバインド。

  • Preferences.sublime-settings
  1. {
  2. "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
  3. "ignored_packages": ["Vintage"],
  4. "font_face": "Migu 1M", // font
  5. "font_size": 12, // font size
  6. "highlight_line": true, // 現在行をハイライト
  7. "show_encoding": true, // エンコーディングを表示
  8. "trim_trailing_white_space_on_save": true, // 行末のスペースを削除
  9. "fold_buttons": true, // 折りたたみボタンを表示
  10. "fade_fold_buttons": true, // 折りたたみボタンを隠す
  11. }
  12.  

  • Default (Windows).sublime-keymap
  1. [
  2. {"keys": ["ctrl+h"], "command": "left_delete"}, // back space
  3. {"keys": ["ctrl+i"], "command": "reindent"}, // reindent
  4. {"keys": ["ctrl+["], "command": "indent"}, // indent
  5. {"keys": ["ctrl+]"], "command": "unindent"}, // unindent
  6. {"keys": ["ctrl+t"], "command": "new_file"}, // 新しいタブを開く
  7. {"keys": ["ctrl+z"], "command": "move", "args": {"by": "pages", "forward": false}}, // pageup
  8. {"keys": ["ctrl+u"], "command": "undo"}, // undo
  9. {"keys": ["ctrl+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"}}, // go to line
  10. {"keys": ["ctrl+right"], "command": "travel_to_pane", "args": {"direction": "right"}}, // 右のペインへ移動
  11. {"keys": ["ctrl+left"], "command": "travel_to_pane", "args": {"direction": "left"}}, // 左のペインへ移動
  12. {"keys": ["ctrl+x", "k"], "command": "close"}, // タブを閉じる
  13. {"keys": ["ctrl+x", "p"], "command": "build"}, // build
  14. {"keys": ["ctrl+x", "r"], "command": "show_panel", "args": {"panel": "replace", "reverse": false}}, // replace
  15.  
  16. // fold
  17. {"keys": ["ctrl+shift+["], "command": "fold" },
  18. {"keys": ["ctrl+shift+]"], "command": "unfold" },
  19. {"keys": ["ctrl+o", "1"], "command": "fold_by_level", "args": {"level": 1} },
  20. {"keys": ["ctrl+o", "2"], "command": "fold_by_level", "args": {"level": 2} },
  21. {"keys": ["ctrl+o", "3"], "command": "fold_by_level", "args": {"level": 3} },
  22. {"keys": ["ctrl+o", "4"], "command": "fold_by_level", "args": {"level": 4} },
  23. {"keys": ["ctrl+o", "5"], "command": "fold_by_level", "args": {"level": 5} },
  24. {"keys": ["ctrl+o", "6"], "command": "fold_by_level", "args": {"level": 6} },
  25. {"keys": ["ctrl+o", "7"], "command": "fold_by_level", "args": {"level": 7} },
  26. {"keys": ["ctrl+o", "8"], "command": "fold_by_level", "args": {"level": 8} },
  27. {"keys": ["ctrl+o", "9"], "command": "fold_by_level", "args": {"level": 9} },
  28. {"keys": ["ctrl+o", "0"], "command": "unfold_all" },
  29. {"keys": ["ctrl+o", "j"], "command": "unfold_all" },
  30. {"keys": ["ctrl+o", "t"], "command": "fold_tag_attributes" },
  31. ]
  32.  
最終更新:2014年11月04日 11:19