Loading ...
Sorry, an error occurred while loading the content.

Re: Quoting the keywordprg text

Expand Messages
  • Peter Wright
    ... [ snip ] ... Awesome, thank you. I just had to add a at the end :), but then it worked perfectly. ... Thanks again, Pete. -- http://flooble.net/blog
    Message 1 of 3 , Feb 26, 2006
    • 0 Attachment
      On 26/02 10:19:47, Yakov Lerner wrote:
      > "Peter Wright" <pete@...> wrote:
      > > 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.
      [ snip ]
      > > Would it be possible to intercept the 'keywordprg' call with a Vim
      > > 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>")."'"
      > or
      > :map K :exe ":!".&keywordprg." '".expand("<cword>")."'"

      Awesome, thank you. I just had to add a <CR> at the end :), but then
      it worked perfectly.

      > Yakov

      Thanks again,

      Pete.
      --
      http://flooble.net/blog
      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@...>
    Your message has been successfully submitted and would be delivered to recipients shortly.