Created
September 12, 2012 11:25
-
-
Save qickstarter/3706047 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
下記設定の追加 | |
```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