Guest User

Untitled

a guest
Jan 23rd, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. " Version:
  2. " commit 66e84e575dab8f1b0fef2fa5d9e868aefcd9912e
  3. "
  4. " 設定
  5. call unite#set_substitute_pattern('file', '^;v', '~/.vim/*')
  6. call unite#set_substitute_pattern('file', '^;b', '~/.vim/bundle/*')
  7. call unite#set_substitute_pattern('file', '^;g', '/var/lib/gems/1.8/gems/*')
  8.  
  9. " 下記の A, B, C の方法で Unite を起動したとき、substitute_pattern
  10. " の動作を3つの入力パターンで確認した。
  11. "
  12. " cd ~/.vim
  13. " gvim
  14.  
  15. " A: file
  16. Unite file -buffer-name=file
  17. " =================================================================
  18.  
  19. " ;v => OK
  20. " ;b => OK
  21. " ;g => OK /var/lib/gems/1.8/gems 配下のCandidate が出る。
  22.  
  23. " B: file_rec
  24. " =================================================================
  25. Unite file_rec/async -buffer-name=file
  26.  
  27. " ;v => OK
  28. " ;b => OK
  29. " ;g => NG ;g のまま
  30.  
  31. " C: file_rec
  32. Unite file_rec -buffer-name=file
  33. " ;v => OK
  34. " ;b => OK
  35. " ;g => NG ;g のまま
  36.  
  37. " 違い
  38. " file_rec, file_rec/async とも、;v, ;b の絞り込み結果が相対パス表示なのに対して、A の file subustitute_pattern 発動後の candidate が絶対パス表示になる。
Add Comment
Please, Sign In to add comment