vim tips
vim tips

vim tips

流浪 posted @ 2007年8月11日 15:19 in Vim tips with tags encoding vim , 3671 阅读

打开一个文件发现是乱码,这里你又知道这文件用的是什么编码的情况下,可以用以下命令<

:e! ++enc=gbk
lyanry补充:
let &termencoding=&encoding
set fileencodings=utf-8,gbk,cp936

"设定文件编码类型,可自动识别中文 UTF-8、 GBK、GB2312 等编码

Avatar_small
lyanry 说:
2007年8月11日 23:41

在 .vimrc 文件里添加:

"设定文件编码类型,可自动识别中文 UTF-8、 GBK、GB2312 等编码
let &termencoding=&encoding
set fileencodings=utf-8,gbk,cp936

Avatar_small
流浪 说:
2007年8月12日 01:10
引用来自:lyanry @ 2007年08月11日 03:41PM

在 .vimrc 文件里添加:

 

"设定文件编码类型,可自动识别中文 UTF-8、 GBK、GB2312 等编码
let &termencoding=&encoding
set fileencodings=utf-8,gbk,cp936

这人智能多了.....

Avatar_small
DDO Request 说:
2022年8月04日 00:53

Drawing and Disbursing Officer is a major and important role in today’s developing India. As every organization has come forward with an official online human resource and development system software. The salaries, payslip, and other important details of an employee taken care of by the Drawing and Disbursing Officer. They play an important role in the organization. DDO Request They reduce the manual work and with their individual effort, the department employees salaries may disbursed. The payment against working days and the leaves taken along with many other criteria observed by a DDO officer. Even an employee who wants to enjoy the services of fficial website will need to reach out to DDO officers. It is all to raise a request for their employee registration.

Avatar_small
GSEB STD-1 Model Pap 说:
2022年9月10日 21:42

Gujarat State Department of School Education, Gandhinagar and the State level subject experts and other private school teaching staff of the Elementary Level Primary School have designed and suggested the GSEB 1st Class Model Paper 2023 with sample answers Set wide as SET-A, SET-B, SET-C and SET-D to know the new exam scheme or question pattern. GSEB STD-1 Model Paper Students of the Gujarat state can download the NCERT & SCERT Syllabus GSEB STD-1 Question Paper 2023 Pdf with sample answers along with the class teacher’s suggested all lesson or chapter’s most important questions for Part-A, Part-B, Part-C and Part-D exams of Term-1 & Term-2 to the academic year of 2023.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter