Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to solve the problem of vimtutor garbled code under ubuntu system

Shulou Source: shulou.com Published: 2022-06-01 12:26:25 10月02日 Update

This article mainly explains "how to solve the vimtutor garbled problem under the ubuntu system". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to solve the vimtutor garbled problem under the ubuntu system".

The vim that comes with ubuntu is the vim-tiny version, without help documentation. Of course, if you type vimtutor on the terminal, you won't have that introductory tutorial. So install the giant version: sudo apt-get install vim first.

However, after entering vimtutor on the terminal, the help document is garbled. This is because the system supports utf8 format, but vimtutor does not provide a utf8 version, so you have to manually convert it to utf8 format with iconv. The command is as follows:

Sudo iconv-f gb2312-t utf8 / usr/share/vim/vim71/tutor/tutor.zh.euc-o ~ / tutor.zh.euc

Sudo mv ~ / tutor.zh.euc / usr/share/vim/vim71/tutor/.

Now enter vimtutor in the terminal and the Chinese version of vimtutor will appear. If you want to see the English version, you can enter the following command in turn:

Vim-u NONE-c'e $VIMRUNTIME/tutor/tutor'-c'w! TUTORCOPY'-c 'q'

Vim-u NONE-c "set nocp" TUTORCOPY

The first step is to create a document called TUTORCOPY in your home directory, and the second step is to view it in vim, or you can open it directly with a text editor.

Thank you for your reading, the above is the content of "how to solve the problem of vimtutor garbled code under the ubuntu system". After the study of this article, I believe you have a deeper understanding of how to solve the problem of vimtutor garbled code under the ubuntu system. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Garbled system problem version input document terminal study content command format help introductory tutorial that is giant idea situation tutorial text article Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info OPPO Reno Redmi Linux Huawei