2013年11月8日

vimrc配置-中文编码和python中的中文注释

摘要: set fileencoding=gb18030"设置vim输入的编码set fileencodings=gb18030,...,"打开文档时vim自动匹配可能的编码方式在python文件头上添加# -*- coding: gb18030 -*-告诉python解释器当前的编码方式vim -r filename 阅读全文

posted @ 2013-11-08 19:44 zjgtan 阅读(363) 评论(0) 推荐(0) 编辑

vimrc配置-新建文件时自动生成文件头

摘要: vimrc配置-新建文件时自动生成文件头auto add file headerautocmd BufNewFile *.py 0r /home/zxkletters/.vim/vim_template/vim_header_for_pythonautocmd BufNewFile *.py ks|call FileName()|'sautocmd BufNewFile *.py ks|call CreatedTime()|'sautocmd BufNewFile *.sh 0r /home/zxkletters/.vim/vim_template/vim_header_for 阅读全文

posted @ 2013-11-08 19:35 zjgtan 阅读(931) 评论(0) 推荐(0) 编辑

导航