Skip to content

Instantly share code, notes, and snippets.

@qickstarter
Created September 12, 2012 11:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qickstarter/3706047 to your computer and use it in GitHub Desktop.
Save qickstarter/3706047 to your computer and use it in GitHub Desktop.
下記設定の追加
```vim:vimrc
NeoBundle 'tsukkee/unite-tag'
"------------------------------------
" Unite-tag.vim
"------------------------------------
"{{{
autocmd BufEnter *
\ if empty(&buftype)
\| noremap <silent> <C-J><C-K> :<C-u>UniteWithCursorWord -immediately tag<CR>
\| endif
"}}}
```
これで、`<C-J><C-K>`でカーソル下の文字のtag一覧を表示出来ます。
しかしgem全体のtagsとなると重い重い。。。
unite-tagのキャッシュ機能(tagの読み込み高速化)は開発中なので
unite-tagを弄って、有効にします。(動作が不安定になったら戻してね。)
-- 9/12 --
```sh:shell
# unite-tagのディレクトリに移動
cd bundleのディレクトリに行く
cd unite-tag
# 開発版をチェックアウト
git checkout tags-caching
# バグを修正
vi autoload/unite/sources/tag.vim
# 43行目を書き換える
# - let V = vital#of('unite')
# + let V = vital#of('unite.vim')
```
これで、2度目からtagsの読み込みが高速化されます。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment