LoginSignup
6
6

More than 5 years have passed since last update.

NeoBundle のキャッシュ機能

Last updated at Posted at 2014-07-20

NeoBundle のキャッシュ機能

キャッシュを使うことで、体感できるかな? っていうくらい起動が速くなった。
neobundle#has_fresh_cache() で指定したファイルより新しいキャッシュがあったらキャッシュを読み込み(NeoBundleLoadCache)、なければプラグインを読み込んでキャッシュを保存(NeoBundleSaveCache)。
自分は $VIM/_vimrc_bundle にプラグインの読み込み (NeoBundle ~) を書いているので neobundle#has_fresh_cache() にそれを指定。

$VIM\_vimrc 抜粋

if has('vim_starting')
  set rtp+=$HOME/_vim/bundle/neobundle.vim/
endif
call neobundle#begin(expand('~/_vim/bundle'))

NeoBundleFetch 'Shougo/neobundle.vim'

if neobundle#has_fresh_cache(expand('$VIM/_vimrc_bundle'))
  NeoBundleLoadCache
else
  source $VIM/_vimrc_bundle

  NeoBundleSaveCache
endif

call neobundle#end()

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