Upgrade to Pro — share decks privately, control downloads, hide ads and more …

VIM Plugin Management

VIM Plugin Management

Plugin management with Pathogen and Vundle
for
VIM Madrid http://www.meetup.com/VIM-Madrid/

Carlos Hernando

October 14, 2014
Tweet

More Decks by Carlos Hernando

Other Decks in Technology

Transcript

  1. Plugin
    Management
    Carlos Hernando
    @chernando
    adrid

    View Slide

  2. http://www.vim.org/scripts/

    View Slide

  3. Plugins
    vs
    Scripts
    Robot Fight by Ariel Waldman - https://flic.kr/p/7f7eAt

    View Slide

  4. CAOS!

    View Slide

  5. https://github.com/tpope/vim-pathogen/

    View Slide

  6. Install
    mkdir -p ~/.vim/autoload ~/.vim/bundle!
    curl -LSso ~/.vim/autoload/pathogen.vim
    https://tpo.pe/pathogen.vim

    View Slide

  7. .vimrc
    execute pathogen#infect()!
    syntax on!
    filetype plugin indent on

    View Slide

  8. Plugins
    ~/.vim/bundle

    View Slide

  9. https://github.com/gmarik/Vundle.vim

    View Slide

  10. Install
    git clone https://github.com/gmarik/
    Vundle.vim.git ~/.vim/bundle/Vundle.vim

    View Slide

  11. .vimrc
    set nocompatible!
    filetype off!
    set rtp+=~/.vim/bundle/Vundle.vim!
    call vundle#begin()!
    Plugin 'gmarik/Vundle.vim'!
    Plugin 'tpope/vim-fugitive'!
    call vundle#end()!
    filetype plugin indent on

    View Slide

  12. Plugins
    • :PluginInstall
    • :PluginInstall! (:PluginUpdate)

    View Slide

  13. Other commands
    • :PluginSearch
    • :PluginClean

    View Slide

  14. http://vim-scripts.org/vim/scripts.html

    View Slide

  15. http://vimawesome.com/

    View Slide

  16. About
    This work is licensed under the Creative Commons
    Attribution-NonCommercial-ShareAlike 3.0 Unported
    License. To view a copy of this license, visit http://
    creativecommons.org/licenses/by-nc-sa/3.0/.
    Product names, logos and trademarks of other
    companies which are referenced in this document
    remain the property of those other companies.

    View Slide