完美解決Ubuntu下Sublime Text 2中文輸入(Fcitx)

來源:互聯網
上載者:User

標籤:



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 使用者設定檔
Linux: ~/.config/sublime-text-2
Windows: %APPDATA%\Sublime Text 2

設定字型為DejaVu Sans Mono:
菜單Preferences - Settings User內容:
{
    "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
    "font_size": 12,
    "font_face": "DejaVu Sans Mono"
}

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\""

完美解決Ubuntu下Sublime Text 2中文輸入(Fcitx)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.