php开发环境vim配置

2025-09-11 16:59:34

1、#语法高亮,tab转换为4个空格,基础设置,搜索高亮,递增搜索,主题设置,设置行号,文本编码,禁用鼠标

syntax on

set shiftwidth=4

set tabstop=4

set expandtab

set number

set autoindent

set selectmode=mouse

set cmdheight=2

set showmatch

set nobackup

set encoding=utf8

set noswapfile

set smarttab

set magic

set incsearch

set ignorecase

set hlsearch

set nowritebackup

set history=50

set ruler

set showcmd

set nolist

set showmatch

set notildeop

colo desert

set mouse=a

2、#检查PHP代码中是否有语法错误,使用快捷键ctrl+b

nmap <C-B> :!php -l %<cr>

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
相关推荐
  • 阅读量:52
  • 阅读量:76
  • 阅读量:42
  • 阅读量:42
  • 阅读量:51
  • 猜你喜欢