Home  >  Article  >  php教程  >  VIM做PHP开发环境

VIM做PHP开发环境

WBOY
WBOYOriginal
2016-06-06 19:54:111456browse

http://blog.sina.com.cn/s/blog_73ca27ba0100r1u3.html 更换了注释插件NER_commenter,函数出错找不到解决办法,于是更换为插件EnhancedCommentify ----------------------------------------------------------------- 折腾了四天终于把 vim差不多搞定了 实

http://blog.sina.com.cn/s/blog_73ca27ba0100r1u3.html


更换了注释插件NER_commenter,函数出错找不到解决办法,于是更换为插件EnhancedCommentify

-----------------------------------------------------------------

折腾了四天终于把 vim差不多搞定了 实现了目录,函数跳转,注释和php自动缩进,自动补全。有待日后完后
vimrc代码如下:

" 设置leader为,
let mapleader=","
let g:mapleader=","
set nocompatible            " 关闭 vi 兼容模式
syntax on                   " 自动语法高亮

set mouse=a                 " 开启鼠标模式
filetype plugin indent on   " 开启插件
set number                  " 显示行号
set nocursorline            " 不突出显示当前行
set shiftwidth=4            " 设定 > 命令移动时的宽度为 4
set softtabstop=4           " 使得按退格键时可以一次删掉 4 个空格
set tabstop=4               " 设定 tab 长度为 4
set nobackup                " 覆盖文件时不备份
set autochdir               " 自动切换当前目录为当前文件所在的目录
set backupcopy=yes          " 设置备份时的行为为覆盖
set ignorecase smartcase    " 搜索时忽略大小写,但在有一个或以上大写字母时仍大小写敏感
set nowrapscan              " 禁止在搜索到文件两端时重新搜索
set incsearch               " 输入搜索内容时就显示搜索结果
set hlsearch                " 搜索时高亮显示被找到的文本
set noerrorbells            " 关闭错误信息响铃
set novisualbell            " 关闭使用可视响铃代替呼叫
set t_vb=                   " 置空错误铃声的终端代码
" set showmatch               " 插入括号时,短暂地跳转到匹配的对应括号
" set matchtime=2             " 短暂跳转到匹配括号的时间
" set nowrap                  " 不自动换行
set magic        

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn