macvim用的是mac里面的vim, 只不过是一个GUI的APP, 相当于一个壳
1. 下载macvim
https://code.google.com/p/macvim/
2. 了解macvim
:h vim的使用帮助信息
:h macvim 查看macvim相关信息
:version 查看版本以及加载了哪些配置文件, 配置文件的位置
3. 安装vim的插件管理插件bundle
git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
4. 配置一下插件列表
set nocompatible " be iMproved filetype off " required! set rtp+=~/.vim/bundle/vundle/ call vundle#rc() " let Vundle manage Vundle " required! "这是vundle本身的设置 Bundle 'gmarik/vundle' " My Bundles here: "这里是设置你自己自定义的插件的设置vundle设置,注意:下载的插件git为:https://github.com/godlygeek/tabular.git,则设置为Bundle 'godlygeek/tabular';https://github.com/gmarik/vundle.git设置则为 Bundle 'gmarik/vundle' " original repos on github Bundle 'godlygeek/tabular' " vim-scripts repos,vim-scripts的访问地址,格式则如下: Bundle 'L9' Bundle 'FuzzyFinder' " non github repos ,非git的访问地址的,格式如下: Bundle 'git://git.wincent.com/command-t.git' " ... filetype plugin indent on " required! " " Brief help " :BundleList - list configured bundles " :BundleInstall(!) - install(update) bundles " :BundleSearch(!) foo - search(or refresh cache first) for foo " :BundleClean(!) - confirm(or auto-approve) removal of unused bundles " " see :h vundle for more details or wiki for FAQ " NOTE: comments after Bundle command are not allowed..
5. 安装插件
打开macvim, 命令: :BundleInstall
6. 搜索新的插件
:BundleSearch matchit
7.安装新插件
:BundleInstall matchit.zip
8.将插件配置添加到配置文件中, 这样以后安装就只需要 :BundleInstall 即可
最后在~/.vimrc中的注释" vim-scripts repos下,加入如下命令并保存.vimrc文件,这样一个插件就安装成功了:
Bundle 'matchit.zip'
参考链接:
http://blog.csdn.net/eric_xjj/article/details/8932502