Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
Help us understand the problem. What is going on with this article?

NeoBundle のキャッシュ機能

More than 5 years have passed since last update.

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()

hokorobi
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away