The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Introduction to Vim Plugins

Introduction to Vim Plugins

2:14
Vim has the ability to extend its functionality through plugins that can be installed either manually or through plugin managers. We'll setup the [vim-plug](https://github.com/junegunn/vim-plug) manager to install plugins for our `.vimrc`
Watch this lesson now
Avatar
egghead.io

Vim has the ability to extend its functionality through plugins that can be installed either manually or through plugin managers. We'll setup the vim-plug manager to install plugins for our .vimrc

Avatar

I'm having problems automating the plugin installation:
Using macOS,

$ vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Oct  5 2016 16:04:34)
$ which vim
/usr/bin/vim
$ python --version
Python 2.7.12
$ # from https://github.com/junegunn/vim-plug#installation
$ curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
call plug#begin('~/.vim/plugged')

Plug 'tpope/vim-sensible'
Plug 'junegunn/vim-easy-align'

call plug#end()
autocmd VimEnter *
 \ if !empty(filter( copy(g:plugs), '!isdirectory(v:val.dr)' ))
 \|     PlugInstall | q
 \| endif

$ vim
Error detected while processing VimEnter Auto commands for "*":
E716: Key not present in Dictionary: dr)
Press ENTER or type command to continue
Error detected while processing VimEnter Auto commands for "*":
E116: Invalid arguments for function isdirectory(v:val.dr)
In reply to egghead.io
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?