" luarefvim plugin " This is somewhat based on CRefVim " Maintainer: Luis Carvalho " Last Change: Jun, 3, 2005 " Version: 0.2 " initial setup: avoid loading more than once if exists("loaded_luarefvim") finish endif let loaded_luarefvim = 1 " mappings: vmap lr y:call LookUp('"') nmap lr :call LookUp(expand("")) map lc :help luaref function LookUp(str) if a:str == "--" "comment? silent! execute ":help lrv-comment" elseif a:str == "" silent! execute ":help luaref" else silent! execute ":help lrv-" . a:str if v:errmsg != "" echo "luarefvim: \`" . a:str . "\' not found" endif endif endfunction