sudo apt-get install build-essential Libgtk2.0-dev
Gcc-shared-o libsublime-imfix.so sublime_imfix.c ' pkg-config--libs--cflags gtk+-2.0 '-fPIC
sublime_text.sh
#!/bin/bash
Sh-c "Ld_preload=/home/eechen/apps/sublime_text_2/libsublime-imfix.so/home/eechen/apps/sublime_text_2/sublime_ Text
Sublime_text.desktop
#!/usr/bin/env Xdg-open
[Desktop Entry]
Encoding=utf-8
Type=application
Name=sublime_text
Icon=/home/eechen/apps/sublime_text_2/icon/48x48/sublime_text.png
Exec=sh-c "ld_preload=/home/eechen/apps/sublime_text_2/libsublime-imfix.so/home/eechen/apps/sublime_text_2/ Sublime_text "
Comment[zh_cn]=sublime Text 2
Sublime Text User Profile
Linux: ~/.config/sublime-text-2
Windows:%appdata%\sublime Text 2
Set the font to Dejavu Sans Mono:
Menu Preferences-settings User Content:
{
"Color_scheme": "Packages/color scheme-default/monokai.tmtheme",
"Font_size": 12,
"Font_face": "Dejavu Sans Mono"
}
Right-click shortcut menu Registry on Windows:
Windows Registry Editor Version 5.00
[Hkey_classes_root\*\shell\openwithsublimetext]
@= "Open with Sublime Text"
"Icon" = "D:\\sublime Text 2\\sublime_text.exe"
[Hkey_classes_root\*\shell\openwithsublimetext\command]
@= "\" d:\\sublime Text 2\\sublime_text.exe\ "\"%1\ ""
Perfect solution for Ubuntu under sublime Text 2 Chinese input (FCITX)