The simplest solution to the problem that Sublime Text cannot input Chinese in Ubuntu

The simplest solution to the problem that Sublime Text cannot input Chinese in Ubuntu

Sublime

Sublime Text is a code editor (Sublime Text2 is a paid software, but can be tried indefinitely) and an advanced text editor for HTML and prose. Sublime Text was developed by programmer Jon Skinner in January 2008. It was originally designed as a Vim with rich extended functions.

Sublime Text has a beautiful user interface and powerful features such as code thumbnails, Python plugins, code snippets, etc. You can also customize key bindings, menus, and toolbars. The main features of Sublime Text include: spell checking, bookmarks, complete Python API, Goto function, instant project switching, multiple selections, multiple windows, and more. Sublime Text is a cross-platform editor that supports Windows, Linux, Mac OS X and other operating systems.

Sublime is an editing tool I like, but I can't input Chinese in Ubuntu, which is quite uncomfortable for me. So I searched the Internet for a long time and summarized the following simple method.

1. Download the files we need, open the terminal, and enter:

git clone https://github.com/lyfeyaj/sublime-text-imfix.git
cd ~/sublime-text-imfix
sudo cp ./lib/libsublime-imfix.so /opt/sublime_text/
sudo cp ./src/subl /usr/bin/

2. Create a new shell script, it’s very simple, just one sentence.

Sublime creates a new file and enters:

#!/bin/bash
LD_PRELOAD=/opt/sublime_text/libsublime-imfix.so subl

Then save the file as sublime (note: no suffix) and put it in the /home folder. Now you can enter Chinese when you open sublime.

Summarize

The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links

You may also be interested in:
  • How to install sublime3 and configure python3 environment in ubuntu
  • Ubuntu install mysql pycharm sublime
  • Solution to Ubuntu Sublime Chinese input problem
  • Specific steps to configure the C compilation environment of Sublime Text 3 in Ubuntu
  • How to perfectly input Chinese when using sublime text in Ubuntu
  • Solution to the problem that sublime Chinese cannot be input in Ubuntu

<<:  Solution to forgetting MySQL root password in MACOS

>>:  Native JavaScript to achieve slide effects

Recommend

Design Story: The Security Guard Who Can't Remember License Plates

<br />In order to manage the vehicles enteri...

Using react-beautiful-dnd to implement drag and drop between lists

Table of contents Why choose react-beautiful-dnd ...

Steps to purchase a cloud server and install the Pagoda Panel on Alibaba Cloud

Alibaba Cloud purchases servers Purchase a cloud ...

JavaScript implementation of verification code case

This article shares the specific code for JavaScr...

How to modify the contents of an existing Docker container

1. Docker ps lists containers 2. Docker cp copies...

js implements the pop-up login box by clicking the pop-up window

This article shares the specific code of js to re...

A detailed summary of HTML tag nesting rules suitable for beginners

I have been relearning HTML recently, which can be...

Introduction to new ECMAscript object features

Table of contents 1. Object properties 1.1 Attrib...