Skip to content

Instantly share code, notes, and snippets.

@watagashi
Last active June 13, 2017 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save watagashi/e36648e6ed2fa0d3a9afbd49c555dc3d to your computer and use it in GitHub Desktop.
Save watagashi/e36648e6ed2fa0d3a9afbd49c555dc3d to your computer and use it in GitHub Desktop.
vim-plug 自身を Windows でも macOS でも自動インストール ref: http://qiita.com/watagashi/items/cf45ffdd7c21655317a2
let s:vimfiles = expand('<sfile>:p:h')
let s:plugvim = s:vimfiles . '/autoload/plug.vim'
if empty(glob(s:plugvim))
execute "silent !curl -fLo " . s:plugvim . " --create-dirs "
\ . "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim"
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
if !empty(glob(s:plugvim))
call plug#begin(s:vimfiles . '/plugged')
” インストールしたいプラグインを列挙 (以下は一例)
Plug 'twitvim/twitvim'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
" ...
call plug#end()
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment