增加的 “ _vimrc ” 文件相关内容
/*
增加行号显示
默认配色主题:desert
语法高亮开启
设置右边栏为文件夹浏览器通过命令“wm”打开
设置无缓存内容也就是那些重复生成的以“~”结尾的文件名及swap文件;
设置字体courier_new 10号大小
中文乱码
*/
set nu!
colorscheme desert
syntax enable
syntax on
let g:winManagerWindowLayout='FileExplorer|TagList'
nmap wm :WMToggle
set nobackup
setlocal noswapfile
set bufhidden=hide
set nowrap
set guifont=courier_new:h10
set clipboard+=unnamed
set fenc=utf-8
set fencs=utf-8,usc-bom,euc-jp,gb18030,gbk,gb2312,cp936
在syntax文件夹下增加的语法高亮文件c.vim :
"========================================================
" Highlight All Function
"========================================================
syn match cFunction "/<[a-zA-Z_][a-zA-Z_0-9]*/>[^()]*)("me=e-2
syn match cFunction "/<[a-zA-Z_][a-zA-Z_0-9]*/>/s*("me=e-1
hi cFunction gui=NONE guifg=#B5A1FF
"========================================================
" Highlight All Math Operator
"========================================================
" C math operators
syn match cMathOperator display "[-+/*/%=]"
" C pointer operators
syn match cPointerOperator display "->/|/."
" C logical operators - boolean results
syn match cLogicalOperator display "[!<>]=/="
syn match cLogicalOperator display "=="
" C bit operators
syn match cBinaryOperator display"/(&/||/|/^/|<|>>/)=/="
syn match cBinaryOperator display "/~"
syn match cBinaryOperatorError display "/~="
" More C logical operators - highlight in preference to binary
syn match cLogicalOperator display "&&/|||"
syn match cLogicalOperatorError display "/(&&/|||/)="
" Math Operator
hi cMathOperator guifg=#3EFFE2
hi cPointerOperator guifg=#3EFFE2
hi cLogicalOperator guifg=#3EFFE2
hi cBinaryOperator guifg=#3EFFE2
hi cBinaryOperatorError guifg=#3EFFE2
hi cLogicalOperator guifg=#3EFFE2
hi cLogicalOperatorError guifg=#3EFFE2
"========================================================
" My Own DataType shandiche.net
"========================================================
syn keyword cType My_Type_1 My_Type_2 My_Type_3
30G 13yy复制过来的内容 :)
阅读(7290) | 评论(0) | 转发(0) |