sublime text3 在 14.04.1-Ubuntu 下的中文输入

1、安装 fcitx

  

sudo add-apt-repository ppa:fcitx-team/nightly // 添加FCITX仓库.
sudo apt-get update // 更新仓库.
sudo apt-get install fcitx // 安装fcitx输入法框架.

ubuntu 14.04 下如果删除  ibus 会导致一些界面依赖的包被删除, system settimg 一些菜单会消失,在 ubuntu 14.04 ,ibus 和 fcitx 可以共存,如果你发现安装 fcitx 时不小心删除了 ibus,需要装回来

sudo apt-get install ibus
sudo apt-get install linux-generic

重启后如果问题没解决,执行下面命令

sudo apt-get install unity-control-center 

2、安装搜狗拼音 Linux 中文输入法

下载地址:https://pinyin.sogou.com/linux/

sudo dpkg  -i   sogoupinyin_2.2.0.0108_amd64.deb

3、设置输入法

在终端执行下面命令

im-config

出现 current configuration for the input method 面板,选择 yes 选项准备 update 设置,

出现 输入法选择面板,选择 fcilx ,重启系统。

开机后在终端输入下面命令:

fcitx-config-gtk3

在弹出界面的 input method 面板,去掉 only show current language 选项,点击左下角加号,选择 Sogou Pinyin ,并移动到第一行,确定保存。

如果开机搜狗输入法提示中英文切换异常,或者不能输入中文时,解决办法如下:删除 ~/.config/SogouPY, SogouPY.users, sogou-qimpanel 这三个文件夹。

4、安装 sublime text3 中文补丁

升级系统软件包

sudo apt-get update
sudo apt-get upgrade

获取补丁包

git clone https://github.com/lyfeyaj/sublime-text-imfix.git

运行补丁

cd sublime-text-imfix && ./sublime-imfix

重启系统即可。

解决方法来自下面几篇文章

https://blog.csdn.net/weixin_39382961/article/details/80148933

https://www.cnblogs.com/bozhicheng/p/5769221.html

https://blog.csdn.net/sinat_36330809/article/details/79650575

原文地址:https://www.cnblogs.com/ecalf/p/10132169.html