您的位置:首页 > 其它

c primer plus(第五版)读书笔计 第三章(1)

2012-09-19 21:47 246 查看
转自http://blog.chinaunix.net/uid-1700951-id-2838094.html
"打开行号
set nu!
"自动折行
set wrap
"开启语法高亮设置
if !exists("syntax_on")
syntax on
endif
"设置默认语言为C
"set filetype=c
"设置键映射快捷键
map <C-F9> :!d:\usr\perl\bin\perl %
map <C-F11> :!e:\firefox\firefox localhost:8080/perl/%
"设置默认目录
lcd d:\usr\apache2\htdocs\perl
"TAB距离
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set cindent
"颜色类型
colorscheme greens

" 设置编码
set encoding=utf-8
set fileencodings=utf-8,chinese,latin-1
if has("win32")
set fileencoding=chinese
else
set fileencoding=utf-8
endif

"解决consle输出乱码
language messages zh_CN.utf-8

" 设置文件编码检测类型及支持格式
set fencs=utf-8,gbk,ucs-bom,gb18030,gb2312,cp936
" 指定菜单语言
set langmenu=zh_CN.utf-8
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
set guifont=DejaVu\ Sans\ Mono:h12
set guifontwide=新宋体:h12

"帮助语言
set helplang=cn
set iskeyword+=
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: