Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

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

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report