set nocompatible
set showmatch "设置匹配模式
set nu "显示行号
set incsearch "查找时显示高亮关键字
set encoding=utf8
set autoindent "开启自动缩进
set ruler "开启状态栏标尺
set hlsearch "开启高亮时显示被找到的文本
set backspace=indent,eol,start "允许在自动缩进,换行符,插入开始的位置退格
syntax on "语法高亮
colorscheme molokai
filetype plugin indent on
function MakeAndRun()
execute "w"
set makeprg=gcc\ -o\ %<\ %
execute "silent !clear"
execute "silent make"
execute "!./%<"
endfunction
set makeprg=gcc\ -o\ %<\ %
map <F8> :call MakeAndRun()<CR>
"windows gvim 启动最大化
au GUIEnter * simalt ~x