LoginSignup
3
3

More than 5 years have passed since last update.

deinに乗り換えよう(第三段階)

Last updated at Posted at 2016-12-18

前提条件

  • MacOS ElCapitan 10.11.6
  • vim8.0
  • homebrew

今回の作業

第二段階に続けてプラグインを入れていく作業

  • syntastic
  • tagbar
  • vim-tags

手順

syntastic

まずは構文チェックのsyntastic

call dein#add('scrooloose/syntastic')

を追加して、vimを開き直すと。
全部一度に書けばいいんですが・・・まぁあれだ。よく分からないエラーとか出たら原因がわかりやすいから1つずつ追加してるだけですw

tagbar

次はctagsを入れないと多分意味がないtagbar
これを入れておくとvimがideっぽく使えます(雑な説明)

call dein#add('majutsushi/tagbar')

を追加して、vimを開き直す。

szw/vim-tags

viをいちいち閉じなくてもtagsを作り変えられる便利もの

call dein#add('szw/vim-tags')

vimを開き直しておしまい。

これで各言語共通のプラグインはインストールした(はず)

ここまでの.vimrc

let s:dein_dir=expand('~/.vim/dein')
let s:dein_repo_dir=s:dein_dir . '/repos/github.com/Shougo/dein.vim'

if &compatible
  set nocompatible               " Be iMproved
endif

if !isdirectory(s:dein_repo_dir)
  execute '!git clone git@github.com:Shougo/dein.vim.git' s:dein_repo_dir
endif

" Required:
execute 'set runtimepath^=' . s:dein_repo_dir

" Required:
call dein#begin(s:dein_dir)

" Let dein manage dein
" Required:
call dein#add('Shougo/dein.vim')

" Add or remove your plugins here:
call dein#add('Shougo/neosnippet.vim')
call dein#add('Shougo/neosnippet-snippets')
call dein#add('Shougo/neocomplete.vim')
call dein#add('scrooloose/nerdtree')
call dein#add('scrooloose/syntastic')
call dein#add('majutsushi/tagbar')
call dein#add('szw/vim-tags')

" You can specify revision/branch/tag.
call dein#add('Shougo/vimshell', { 'rev': '3787e5' })

" Required:
call dein#end()

" Required:
filetype plugin indent on
syntax enable

" If you want to install not installed plugins on startup.
if dein#check_install()
  call dein#install()
endif

次は、自分が書くまたは書く予定の言語で便利なプラグインを入れるのと、各プラグインの設定を。仕事柄扱う言語が多いのでプラグインを選ぶところから・・・という難題がありますが。
(ちゃっちゃとやらないと、設定だけで年越ししちゃうじゃないか・・・)

3
3
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
3
3