Skip to content

Instantly share code, notes, and snippets.

@h14i
Last active August 29, 2015 14:07
Show Gist options
  • Save h14i/f79f0a6d222b18ac07a8 to your computer and use it in GitHub Desktop.
Save h14i/f79f0a6d222b18ac07a8 to your computer and use it in GitHub Desktop.
シェルから ref.vim を呼び出すためのラッパー関数
# 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