/**********************************************************************
* Vim Vundle 插件管理器
* 说明:
* 话说Vim也已经用了挺久了,一直没有使用插件,有些时候不使用插件总
* 感觉缺点什么,当然也是因为没有找到一些好的管理插件的方法,这次不
* 小心找到了Vundle,感觉很不错,尝试用起来,这样效率能提高不少。
*
* 2016-4-9 深圳 南山平山村 曾剑锋
*********************************************************************/ 一、参考文档:
. Downloading Vim
http://www.vim.org/download.php#others
. Help Maintain Vundle
https://github.com/VundleVim/Vundle.vim
. 所需即所获:像 IDE 一样使用 vim
https://github.com/yangyangwithgnu/use_vim_as_ide
. Vim Scripts
http://vim-scripts.org/index.html
. Vim Scripts Browse all
http://www.vim.org/scripts/script_search_results.php
. Vundle PluginInstall 'Valloric/YouCompleteMe' 卡死在 processing 的可能性有?
https://www.v2ex.com/t/216549
. Linux中源码安装编译Vim
http://www.linuxidc.com/Linux/2014-04/99717.htm
. Vim自动补全神器:YouCompleteMe
http://blog.jobbole.com/58978/
. 像 IDE 一样使用 Vim
http://www.tuicool.com/articles/f6feae 二、Vundle
. Vundle安装:
zengjf@zengjf:~$ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
Cloning into '/home/zengjf/.vim/bundle/Vundle.vim'...
remote: Counting objects: , done.
remote: Total (delta ), reused (delta ), pack-reused
Receiving objects: % (/), 899.90 KiB | KiB/s, done.
Resolving deltas: % (/), done.
zengjf@zengjf:~$ . Configure Plugins(.vimrc) hacking: " set compatible 就是让 vim 关闭所有扩展的功能,尽量模拟 vi 的行为。
set nocompatible " be iMproved, required
filetype off " required " set the runtime path to include Vundle and initialize
" 添加运行时路径,用于包含Vundle和初始相关的工作
" zengjf@zengjf:~/.vim/bundle/Vundle.vim$ pwd
" /home/zengjf/.vim/bundle/Vundle.vim
" zengjf@zengjf:~/.vim/bundle/Vundle.vim$ ls
" autoload doc README.md syntax
" changelog.md ftplugin README_ZH_CN.md test
" CONTRIBUTING.md LICENSE-MIT.txt README_ZH_TW.md
"
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
" 当然,也可以通过这里传递参数作为插件安装地址
"call vundle#begin('~/some/path/here') " let Vundle manage Vundle, required
" 让Vundle管理Vundle,这是必须的
Plugin 'VundleVim/Vundle.vim' " The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" 下面是一些不同来源的插件的配置案例
" 请将这些插件配置放置于vundle#begin/end之间 " plugin on GitHub repo
" GitHub 仓库插件格式
Plugin 'tpope/vim-fugitive'
" plugin from http://vim-scripts.org/vim/scripts.html
" vim 官方插件配置方法,写入名字就行了
Plugin 'L9'
" Git plugin not hosted on GitHub
" git服务器插件,但不是在GitHub上面
Plugin 'git://git.wincent.com/command-t.git'
" git repos on your local machine (i.e. when working on your own plugin)
" git 仓库在自己的电脑上
Plugin 'file:///home/gmarik/path/to/plugin'
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" Install L9 and avoid a Naming conflict if you've already installed a
" different version somewhere else.
" 已经存在一个L9的插件了,另外再安装一个名字叫L9的插件
Plugin 'ascenator/L9', {'name': 'newL9'} " All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help 简短的帮助说明
" :PluginList - lists configured plugins 列出所有的安装了的插件
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
. plugin install
vim中执行":PluginInstall"
. plugin clean
vim中执行":PluginClean"
. plugin update
vim中执行":PluginUpdate" 三、插件问题:
. Vim版本太低:
. 卸载Vim
sudo apt-get remove vim
sudo apt-get remove vim-runtime
sudo apt-get remove gvim
sudo apt-get remove vim-tiny
sudo apt-get remove vim-common
sudo apt-get remove vim-gui-common
. 下载Vim源码:
http://www.vim.org/download.php#unix
. ./configure --with-features=huge --enable-rubyinterp --enable-pythoninterp --with-python-config-dir=/usr/lib/python2./ --enable-perlinterp --enable-gui=gtk2 --enable-cscope --enable-luainterp --enable-perlinterp --enable-multibyte --prefix=/usr
. sudo make VIMRUNTIMEDIR=/usr/share/vim/vim74
. sudo make install
. YouCompleteMe:
. 安装时,vim卡在YouCompleteMe那里很久,YouCompleteMe对应的目录有没有文档更新。
. github: https://github.com/Valloric/YouCompleteMe
. git clone --recursive https://github.com/Valloric/YouCompleteMe.git
. 安装失败:
zengjf@zengjf:~/.vim/bundle/YouCompleteMe$ ./install.sh --clang-complete
WARNING: this script is deprecated. Use the install.py script instead.
CMake Error at CMakeLists.txt: (cmake_minimum_required):
CMake 2.8. or higher is required. You are running version 2.8. -- Configuring incomplete, errors occurred!
Traceback (most recent call last):
File "/home/zengjf/.vim/bundle/YouCompleteMe/third_party/ycmd/build.py", line , in <module>
Main()
File "/home/zengjf/.vim/bundle/YouCompleteMe/third_party/ycmd/build.py", line , in Main
BuildYcmdLib( args )
File "/home/zengjf/.vim/bundle/YouCompleteMe/third_party/ycmd/build.py", line , in BuildYcmdLib
subprocess.check_call( [ 'cmake' ] + full_cmake_args )
File "/usr/lib/python2.7/subprocess.py", line , in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '-G', 'Unix Makefiles', '-DUSE_CLANG_COMPLETER=ON', '-DUSE_PYTHON2=ON', '/home/zengjf/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp']' returned non-zero exit status
Traceback (most recent call last):
File "./install.py", line , in <module>
Main()
File "./install.py", line , in Main
subprocess.check_call( [ python_binary, build_file ] + sys.argv[:] )
File "/usr/lib/python2.7/subprocess.py", line , in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python2', '/home/zengjf/.vim/bundle/YouCompleteMe/third_party/ycmd/build.py', '--clang-complete']' returned non-zero exit status
. 目前未解决。 四、.vimrc配置:
set nocompatible " be iMproved, required
filetype off " required " set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdcommenter'
Plugin 'scrooloose/nerdtree'
Plugin 'fholgado/minibufexpl.vim'
Plugin 'wesleyche/SrcExpl'
Plugin 'bufexplorer.zip'
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
...... 五、插件情况:
zengjf@zengjf:~/.vim/bundle$ ls
bufexplorer.zip nerdcommenter SrcExpl Vundle.vim
minibufexpl.vim nerdtree taglist.vim
zengjf@zengjf:~/.vim/bundle$

Vim Vundle 插件管理器的更多相关文章

  1. vim 代码片段:通过vundle插件管理器安装ultisnips |centos6.5|vim7.2

    背景:中午醒来,饭都没吃,突然想到要给vim增加个代码片段的功能,因为昨天使用了gedit的代码片段,感觉不错.为什么不直接使用gedit呢?因为我相信把时间投入到vim是不会错的,精通vim就好了. ...

  2. Vim插件管理器Vundle使用

    参考地址:http://www.linuxidc.com/Linux/2012-12/75684.htm Vundle(Vim bundle) 是一个vim的插件管理器. 其Github地址为: ht ...

  3. Vim插件之插件管理器Vundle

    Vim插件之插件管理器Vundle 1.介绍下载 相比Sublime.Text2等现代编辑器,Vim缺乏默认的插件管理器,所有插件的文件都散布在~/.vim下的几个文件夹中,配置Vim的过程, 就是在 ...

  4. vim插件管理器的安装和配置-windows

    # vim插件管理器的安装和配置-windows ### 前言------------------------------ vim做一框功能强大的编辑器,扩展功能令人称奇,插件机制非常灵活- 本篇推荐 ...

  5. vim插件管理器:Vundle的介绍及安装(很全)(转载)

    转载自:https://blog.csdn.net/zhangpower1993/article/details/52184581 背景 Vim缺乏默认的插件管理器,所有插件的文件都散布在~/.vim ...

  6. 使用Vim-plug作为Vim 插件管理器

    ref: https://www.cnblogs.com/jiftle/p/6918157.html - vundle是一款老款的插件管理工具- vim-plug相对较新,特点是支持异步加载,相比vu ...

  7. 【vim】插件管理及代码智能提示与补全环境的配置

    1. 引言 可以使用脚本/插件来给vim添加各种神奇的功能,从更换颜色主题.到代码智能提示,甚至项目管理.无数开发者通过开源社区贡献自己开发的插件,使得vim有可能变得无比强大.这儿http://vi ...

  8. 关于插件管理器Alcatraz

    如何安装插件管理器Alcatraz:去github下载一个Alcatraz安装包,然后运行一下. 会弹出 记得选择左边的Load Bundle 退出Xcode 重新运行一下就OK 了. 然后就可以看到 ...

  9. Confluence 6 关于统一插件管理器

    所有的组件通过 统一插件管理器(Universal Plugin Manager)进行管理,这个也被称为 UPM.UPM 可以在几乎所有的 Atlassian 应用中找到,能够提供完整同意的插件安装管 ...

随机推荐

  1. A3992学习记录

    ATmega64+A3992驱动步进电机 //ATmega 64a 电机驱动板程序//编译环境 AVR Studio 4.17/AVR GCC//系统外部时钟16M//作者:虞恺 //日期:2012. ...

  2. Pop Sequence (栈)

     Pop Sequence (栈) Given a stack which can keep M numbers at most. Push N numbers in the order of 1, ...

  3. 【单例模式】单例模式 & GCD单例模式 & 将封装单例模式到宏

    懒汉式单例模式 下面的代码块, 基本是单例模式的完整版本了. 可扩展的地方,可以在init方法中作扩展. // static 在全局变量的作用域仅限于当前文件内部 static id _instanc ...

  4. windows server 2008 r2电脑历史操作记录

    1.看计算机哪天运行过.    在系统盘下的Windows\Tasks文件夹下找到文件SCHEDLGU.TXT. 2.看你最近打开过什么文件(非程序)或者文件夹    开始-->运行--> ...

  5. (转)为什么adrl r2,mem_cfg_val这里不用ldr r2,=mem_cfg_val

    网址:http://blog.csdn.net/glorin/article/details/6327083 memsetup:mov r1, #MEM_CTL_BASEadrl r2,mem_cfg ...

  6. java程序练习:数组中随机10个数中的最大值

    //定义输入:其实是一个可以保存10个整数的数组 //使用循环遍历,生成10个随机数,放入每个元素中//打桩,数组中的内容 //定义输出变量 //将数组中第一个元素取出,保存在max中,当靶子 //遍 ...

  7. 2329: [HNOI2011]括号修复 - BZOJ

    恶心的splay,打标记的时候还有冲突,要特别小心 上次写完了,查了半天没查出错来,于是放弃 今天对着标程打代码,终于抄完了,我已经不想再写了 const maxn=; type node=recor ...

  8. CQRS学习——Cqrs补丁,async实验以及实现[其二]

    实验——async什么时候提高吞吐 async是一个语法糖,用来简化异步编程,主要是让异步编程在书写上接近于同步编程.总的来收,在await的时候,相当于附加上了一个.ContinueWith(). ...

  9. string.Equals 比较2个字符串是否相同忽略大小写

    bool res = string.Equals(str1, str2, StringComparison.CurrentCultureIgnoreCase)

  10. spoj 364

    动规  f[i][j]表示第i到第j个数能取到的最大值 e[i][j]表示最小值 ....... #include <cstdio> #include <cstring> us ...