vim配置

color desert
syntax enable


set ruler  "显示状态栏
set nocompatible
set nu
set tabstop=4
set shiftwidth=4
set encoding=utf-8
set mouse=n
set selection=exclusive
set selectmode=mouse,key
set formatoptions=tcrqn
set autoindent
set cindent
set smartindent
set softtabstop=4
set noexpandtab
set laststatus=2
set statusline=%f


set foldenable " 开始折叠 
set foldmethod=syntax " 设置语法折叠 
set foldcolumn=0 " 设置折叠区域的宽度 
setlocal foldlevel=1 " 设置折叠层数为 
" set foldclose=all " 设置为自动关闭折叠


set foldtext=v:folddashes.substitute(getline(v:foldstart),'/\\*\\\|\\*/\\\|{{{\\d\\=','','g')
set ts=4
set shiftwidth=4
set cindent
set expandtab
set fdm=marker
let php_baselib = 1
let php_htmlInStrings = 1
let php_noShortTags = 1
let php_folding = 1


filetype plugin indent on


autocmd BufWritePost *.php !php -d display_errors=on -l <afile>
autocmd BufWritePost *.inc !php -d display_errors=on -l <afile>


source ~/.vim/php-doc.vim  //下载
:imap <C-D> <ESC>:call PhpDocSingle()<CR>i
:nmap <C-D> :call PhpDocSingle()<CR>
:vmap <C-D> :call PhpDocRange()<CR>

你可能感兴趣的:(vim配置)