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

WeChat applet implements jigsaw puzzle game

This article shares the specific code for impleme...

Data storage implementation method in WeChat applet

Table of contents Global variable globalData Page...

Solution to MySQL startup successfully but not listening to the port

Problem Description MySQL is started successfully...

Linux Basic Tutorial: Special Permissions SUID, SGID and SBIT

Preface For file or directory permissions in Linu...

Implementation of sharing data between Docker Volume containers

What is volume? Volume means capacity in English,...

A simple method to regularly delete expired data records in MySQL

1. After connecting and logging in to MySQL, firs...

Realizing provincial and municipal linkage effects based on JavaScript

This article shares the specific code of JavaScri...

Solve the installation problem of mysql8.0.19 winx64 version

MySQL is an open source, small relational databas...

Detailed explanation of linux nslookup command usage

[Who is nslookup?] 】 The nslookup command is a ve...

Docker packages the local image and restores it to other machines

1. Use docker images to view all the image files ...

About the pitfall record of Vue3 transition animation

Table of contents background Problem location Fur...