vim配置编辑php
2015-02-27 16:27
120 查看
wgypdeMacBook-Air:vim root# cat vimrc
" Configuration file for vim
set modelines=0 " CVE-2007-2438
" Normally we use vim-extensions. If you want true vi-compatibility
" remove change the following statements
set nocompatible " Use Vim defaults instead of 100% vi compatibility
set backspace=2 " more powerful backspacing
" Don't write backup file if vim is being called by "crontab -e"
au BufWrite /private/tmp/crontab.* set nowritebackup
" Don't write backup file if vim is being called by "chpass"
au BufWrite /private/etc/pw.* set nowritebackup
set tabstop=4
set softtabstop=4
set shiftwidth=4
set autoindent
set cindent
set cinoptions={0,1s,t0,n-2,p2s,(03s,=.5s,>1s,=1s,:1s
set expandtab
set number
set nocompatible
set number
filetype on
set history=1000
set background=light
syntax on
set autoindent
set smartindent
set tabstop=4
set shiftwidth=4
set showmatch
set guioptions-=T
set vb t_vb=
set ruler
set nohls
set incsearch
if has("vms")
set nobackup
else
set backup
endif
set fileencodings=utf-8-bom,ucs-bom,utf-8,cp936,gb18030,ucs,big5
参考:
Linux下(.vimrc文件)
" Configuration file for vim
set modelines=0 " CVE-2007-2438
" Normally we use vim-extensions. If you want true vi-compatibility
" remove change the following statements
set nocompatible " Use Vim defaults instead of 100% vi compatibility
set backspace=2 " more powerful backspacing
" Don't write backup file if vim is being called by "crontab -e"
au BufWrite /private/tmp/crontab.* set nowritebackup
" Don't write backup file if vim is being called by "chpass"
au BufWrite /private/etc/pw.* set nowritebackup
set tabstop=4
set softtabstop=4
set shiftwidth=4
set autoindent
set cindent
set cinoptions={0,1s,t0,n-2,p2s,(03s,=.5s,>1s,=1s,:1s
set expandtab
set number
set nocompatible
set number
filetype on
set history=1000
set background=light
syntax on
set autoindent
set smartindent
set tabstop=4
set shiftwidth=4
set showmatch
set guioptions-=T
set vb t_vb=
set ruler
set nohls
set incsearch
if has("vms")
set nobackup
else
set backup
endif
set fileencodings=utf-8-bom,ucs-bom,utf-8,cp936,gb18030,ucs,big5
参考:
Linux下(.vimrc文件)
配置文件vimrc存放位置
Vim配置实例
VIM 中文解决方法
相关文章推荐
- ~/.viminfo权限引起的vim无法记住上次编辑的位置(附vim配置文件)
- 我的VIM配置PHP版
- vim配置php开发环境
- 修改home目录下的.vimrc文件,vim配置php高亮显示
- VIM配置DBGp调试PHP程序
- 对vim配置文件的编辑
- 配置vim为php开发编译器增加导航自动提示
- 在Ubuntu上配置PHP调试环境Vim+XDebug
- vim编辑php文件时html无法自动缩进的解决办法
- RHCE课程-RH033Linux基础笔记六之编辑工具VIM、网络配置、进程优先、日志文件简介(上)
- vim代码颜色配置-PHP版
- 代码编辑神器VIM(附我写acm程序时的配置)
- ubuntu下配置VIM做PHP的IDE开发环境
- 代码编辑神器VIM(附我写acm程序时的配置)
- windows下的VIM php IDE设置.(附上了windows和linux下两个不同的vimrc配置)
- RHCE课程-RH033Linux基础笔记六之编辑工具VIM、网络配置、进程优先、日志文件简介(下)
- 配置一个高效的PHP开发环境Vim
- ubuntu下配置VIM做PHP的IDE开发环境
- vim配置php语法高亮
- 经典编辑工具VIM配置 (附插件包)