Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " Version:
- " commit 66e84e575dab8f1b0fef2fa5d9e868aefcd9912e
- "
- " 設定
- call unite#set_substitute_pattern('file', '^;v', '~/.vim/*')
- call unite#set_substitute_pattern('file', '^;b', '~/.vim/bundle/*')
- call unite#set_substitute_pattern('file', '^;g', '/var/lib/gems/1.8/gems/*')
- " 下記の A, B, C の方法で Unite を起動したとき、substitute_pattern
- " の動作を3つの入力パターンで確認した。
- "
- " cd ~/.vim
- " gvim
- " A: file
- Unite file -buffer-name=file
- " =================================================================
- " ;v => OK
- " ;b => OK
- " ;g => OK /var/lib/gems/1.8/gems 配下のCandidate が出る。
- " B: file_rec
- " =================================================================
- Unite file_rec/async -buffer-name=file
- " ;v => OK
- " ;b => OK
- " ;g => NG ;g のまま
- " C: file_rec
- Unite file_rec -buffer-name=file
- " ;v => OK
- " ;b => OK
- " ;g => NG ;g のまま
- " 違い
- " file_rec, file_rec/async とも、;v, ;b の絞り込み結果が相対パス表示なのに対して、A の file subustitute_pattern 発動後の candidate が絶対パス表示になる。
Add Comment
Please, Sign In to add comment