使用windows版vim

废话少说,先去下一个windows版的vim:获取下载链接安装后,使用时发现中文乱码,这是由于windows系统默用GBK中文编码,因此在vim上我们需要作出如下修改:
用具有读写功能的文本编辑器打开_vimrc文件,然后添加以下代码:

set encoding=utf-8 
set fileencodings=utf-8,chinese,latin-1
if has("win32") 
set fileencoding=chinese 
else 
set fileencoding=utf-8 
endif 
source $VIMRUNTIME/delmenu.vim 
source $VIMRUNTIME/menu.vim 
language messages zh_CN.utf-8 
colorscheme desert
:set number

最后保存重启就可以了。
更多vim使用信息请见:

http://wp.cpxiang.tech/technology/vim%E9%AB%98%E6%95%88%E6%93%8D%E4%BD%9C.html

发表评论?

0 条评论。

发表评论


注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.