Last active
June 13, 2017 14:35
-
-
Save watagashi/e36648e6ed2fa0d3a9afbd49c555dc3d to your computer and use it in GitHub Desktop.
vim-plug 自身を Windows でも macOS でも自動インストール ref: http://qiita.com/watagashi/items/cf45ffdd7c21655317a2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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