LoginSignup
1
0

More than 5 years have passed since last update.

vim-plugでvimの楽々プラグイン管理

Last updated at Posted at 2019-01-13

vim-plugというパッケージマネージャーに感動したのでメモ。
今まではdein-vimでパッケージを管理していた。
しかしvim-pluginはさらにその上を行く。

導入

macの場合は以下をコマンドで実行するだけで良いらしい。

curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

vimrcに以下を記述した後、

" Plugins will be downloaded under the specified directory.
call plug#begin('~/.vim/plugged')

" Declare the list of plugins.
Plug 'tpope/vim-sensible'
Plug 'junegunn/seoul256.vim'

" List ends here. Plugins become visible to Vim after this call.
call plug#end()

vimをリスタートする
:PlugInstall
とvim内から打つと、
あら不思議
`tpope/vim-sensible'
'junegunn/seoul256.vim'
の二つのプラグインがダウンロード出来る。

お手軽になったなあ。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0