Last active
August 29, 2015 14:07
-
-
Save h14i/f79f0a6d222b18ac07a8 to your computer and use it in GitHub Desktop.
シェルから ref.vim を呼び出すためのラッパー関数
This file contains hidden or 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
# wrapper for ref.vim | |
# license: Public Domain | |
function vimref { | |
if [[ $# < 2 ]] then | |
print "$0 - ref.vim wrapper | |
usage: | |
$0 SOURCE KEYWORDS | |
example: | |
$0 man vim | |
$0 info libc | |
$0 javascript Array.forEach" | |
return 1 | |
fi | |
command vim\ | |
--cmd 'let g:singleton#disable=1'\ | |
-c "Ref -open= $@"\ | |
-c 'nunmap ZZ' | |
} | |
# vim:ft=zsh:sts=2:sw=2:et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment