# Preface

Recently I began to use sublime and I found that fcitx couldn’t work in sublime. This is quite weird. After searching online for a while, I found a solution which could solve the problem in a “dirty” way.

# Solution

First, thanks to cjacker, save the following script as sublime-imfix.c

Then compile it.

You will get a file called libsublime-imfix.so, put it in \$HOME/.config/sublime-text-3/Packages/. In fact, it doesn’t matter where you put it, as long as you specify the right location of it in the following code. Put the following code in your ~/.bashrc file.

Save, re-source it.

Type in sublime in your terminal and you are good to go!

Share