下面来给各位介绍linux下vim安装vundle并安装emmet,如果你对于这两个组件不理解可以和小编一起来看看此教程,首先在Windows上安装git,自行搞掂,谢谢.
 
  设置 curl命令工具,Curl已经在安装git时就带上了,接下来需要的是稍稍配置下使得它能在命令提示符中使用,找到git的安装目录,然后进入cmd目录,新建一个名为curl.cmd的文件,内容如下:
 
  @rem Do not use "echo off" to not affect any child calls.
  @setlocal
  
  @rem Get the abolute path to the parent directory, which is assumed to be the
  @rem Git installation root.
  @for /F "delims=" %%I in ("%~dp0..") do @set git_install_root=%%~fI
  @set PATH=%git_install_root%\bin;%git_install_root%\mingw\bin;%PATH%
  
  @if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%
  @if not exist "%HOME%" @set HOME=%USERPROFILE%
  
  @curl.exe %*
  在命令提示符中输入 curl –version来验证下curl是否可用了.
 
  切换到用户主目录,运行:
 
  git clone https://github.com/gmarik/vundle.git .vim/bundle/vundle
 
  然后在用户主目录下新建一个名为 .vimrc的文件,我的文件内容如下:
 
  set nu
  set fileencoding=utf-8
  set fileencodings=utf-8,gb18030,gb2312,gbk,big5
  set ts=4
  set expandtab
  set autoindent
  set nocompatible
  set syntax=on
 
  filetype off                  " required!
  
  set rtp+=~/.vim/bundle/vundle/
  call vundle#rc()
  //phpfensi.com
  " let Vundle manage Vundle
  " required!  
  Bundle 'gmarik/vundle'
  Bundle 'mattn/emmet-vim'
  Bundle 'Auto-Pairs'
  Bundle 'php-doc'
  Bundle 'PHPDoc-Script-PDocS'
  let g:user_emmet_expandabbr_key = '<Tab>'
  let g:user_emmet_settings = {'indentation': '    '}
  filetype plugin indent on     " required!
  这样Vundle的安装就完毕了,要使用Vundle,可以在上面创建的 _vimrc中添加 Bundle ‘bundle_name’,然后打开vim,运行Vundle相关的命令来执行.
 
  安装插件::BundleInstall
 
  更新插件::BundleInstall!
 
  卸载插件::BundleClean
 
  至于有什么样的插件可以添加,可以到vim-scripts.org查找,除此之外,还可以添加git管理的repo,包括GitHub上的,不在GitHub上的,以及本地repo.
 
 

dawei

【声明】:站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。