In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the vim how to set the coding of the relevant knowledge, the content is detailed and easy to understand, the operation is simple and fast, has a certain reference value, I believe you will have something to gain after reading this vim how to set the coding article, let's take a look.
View file encodings in Vim: set fileencoding
You can display the file encoding format. If you just want to view files in other encoding formats or want to solve the problem of viewing garbled files with Vim, add the following to the ~ / .vimrc file:
Set encoding=utf-8 fileencodings=utf-8
In this way, you can let vim automatically identify the file encoding (can automatically identify UTF-8 or GBK encoded files), in fact, according to the coding list provided by fileencodings to try, if you do not find a suitable encoding, use latin-1 (ASCII) coding to open. Open a file in a specified encoding, such as a file saved in ANSI in windows
Vim file.txt-c "e + + enc=GB18030" file encoding conversion
Convert file encoding directly in Vim, such as converting a file to utf-8 format
: set fileencoding=utf-8 view file format: set fileformat# or: set ff set the file format to unix:set fileformat=unix# or: set ff=unix on "how to encode vim" this article is introduced here, thank you for reading! I believe that everyone has a certain understanding of the knowledge of "how to set the code in vim". If you want to learn more knowledge, you are welcome to follow the industry information channel.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.