每天都学一点

VIM插件管理器安装插件

10 11月
作者:林健|分类:Linux
  1. sudo apt-get install vim git

  1. git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

  1. vim ~/.vimrc

  1. set nocompatible " be iMproved, required

  2. filetype off " required

  3. " set the runtime path to include Vundle and initialize

  4. set rtp+=~/.vim/bundle/Vundle.vim

  5. call vundle#begin()

  6. " alternatively, pass a path where Vundle should install plugins

  7. "call vundle#begin('~/some/path/here')

  8. " let Vundle manage Vundle, required

  9. Plugin 'VundleVim/Vundle.vim'

  10. " The following are examples of different formats supported.

  11. " Keep Plugin commands between vundle#begin/end.

  12. " plugin on GitHub repo

  13. Plugin 'tpope/vim-fugitive'

  14. " plugin from http://vim-scripts.org/vim/scripts.html

  15. " Plugin 'L9'

  16. " Git plugin not hosted on GitHub

  17. Plugin 'git://git.wincent.com/command-t.git'

  18. " git repos on your local machine (i.e. when working on your own plugin)

  19. Plugin 'file:///home/gmarik/path/to/plugin'

  20. " The sparkup vim script is in a subdirectory of this repo called vim.

  21. " Pass the path to set the runtimepath properly.

  22. Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}

  23. " Install L9 and avoid a Naming conflict if you've already installed a

  24. " different version somewhere else.

  25. " Plugin 'ascenator/L9', {'name': 'newL9'}

  26. " All of your Plugins must be added before the following line

  27. call vundle#end() " required

  28. filetype plugin indent on " required

  29. " To ignore plugin indent changes, instead use:

  30. "filetype plugin on

  31. "

  32. " Brief help

  33. " :PluginList - lists configured plugins

  34. " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate

  35. " :PluginSearch foo - searches for foo; append `!` to refresh local cache

  36. " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal

  37. "

  38. " see :h vundle for more details or wiki for FAQ

  39. " Put your non-Plugin stuff after this line


    浏览2 评论0
    返回
    目录
    返回
    首页
    集合 Docker命令自动补全

    发表评论