在用VIM编辑html文件补全id或class标签的时候提示以下错误:
1 2 3 | 处理 Function htmlcomplete#CompleteTags 时发生错误: 第 304行: E121: 未定义的变量:classlines |
解决方法,编辑:autoload/htmlcomplete.vim注释294-310(295、296、307、308不注释)
发布时间:April 1, 2013 // 分类:Vim // No Comments
在用VIM编辑html文件补全id或class标签的时候提示以下错误:
1 2 3 | 处理 Function htmlcomplete#CompleteTags 时发生错误: 第 304行: E121: 未定义的变量:classlines |
解决方法,编辑:autoload/htmlcomplete.vim注释294-310(295、296、307、308不注释)
发布时间:February 7, 2013 // 分类:Vim // No Comments
Windows下Gvim安装后会在右键菜单添加使用Vim编辑的选项,绿色版Gvim可自行添加:
1 2 | reg.exe ADD HKEY_CLASSES_ROOT\*\shell\用Vim编辑\Command -d "D:\\Program Files\\Gvim\\vim73\\gvim.exe \"%1\"" |
或导入以下注册表,Gvim目录自行替换。
1 2 3 4 | Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell\用Vim编辑\Command] @="D:\\Program Files\\Gvim\\vim73\\gvim.exe \"%1\"" |
发布时间:February 6, 2013 // 分类:Vim // No Comments
发布时间:January 24, 2013 // 分类:Vim // No Comments
发布时间:December 16, 2012 // 分类:Vim // No Comments
在Linux各发行版上有各种软件包管理器,在强大的Vim上也有包管理插件,极大的方便系统使用与管理。
Vundle基于Git获取Github上的各种Vim插件,可进行在线查找、安装、更新Vim插件,每个插件以单独目录存放,方便管理。
Vundle安装:
1 | git clone https: //github .com /gmarik/vundle .git ~/.vim /bundle/vundle |
Windows下安装:
1 2 | cd %USERPROFILE% git clone https://github.com/gmarik/vundle.git .vim/bundle/vundle |
Vundle配置:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | set nocompatible "与vi不一致 filetype off set rtp+=~/.vim/bundle/vundle/ "载入特定目录插件 "set rtp+=$HOME/.vim/bundle/vundle/ "Windows下 call vundle#rc() "plugin "vimscripts账号下的项目直接填写名称即可 Bundle 'snipMate' "其它需填写用户/资源名称 Bundle 'gmarik/vundle' "非github上资源 Bundle 'git://git.wincent.com/command-t.git' "indent Bundle 'php.vim-html-enhanced' "color Bundle 'Lucius' filetype plugin indent on |
Vundle命令:
1 2 3 4 | :BundleList #已安装列表 :BundleInstall(!) #安装、升级 :BundleSearch(!) #搜索 :BundleClean(!) #删除 |
也可在Vundle窗口下管理插件,打开Vim执行:
1 | :Bundles #GitHub上插件列表 |