Perfect solution for Ubuntu under sublime Text 2 Chinese input (FCITX)

Source: Internet
Author: User
Tags sublime text



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)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.