Re: Quoting the keywordprg text
- On 26/02 10:19:47, Yakov Lerner wrote:
> "Peter Wright" <pete@...> wrote:[ snip ]
> > Problem as follows - I'm writing Scheme programs in Vim. I'd like to
> > use the keywordprg setting so that I can access documentation on a
> > Scheme keyword with the K key.
> > Would it be possible to intercept the 'keywordprg' call with a VimAwesome, thank you. I just had to add a <CR> at the end :), but then
> > function that wraps the string in quotes before sending it to the
> > shell?
> You can try
> :map K :exe ":!your-shell-command-here '".expand("<cword>")."'"
> :map K :exe ":!".&keywordprg." '".expand("<cword>")."'"
it worked perfectly.
> YakovThanks again,
Parentheses? What parentheses? I haven't noticed any parentheses
since my first month of Lisp programming. I like to ask people who
complain about parentheses in Lisp if they are bothered by all the
spaces between words in a newspaper... -- Kenny Tilton <tilt@...>