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

50392Re: 2html.vim script question

Expand Messages
  • Benji Fisher
    May 21, 2004
      On Fri, May 21, 2004 at 06:48:36PM -0400, Charles H. Shooshan III wrote:
      > Thanks for getting back to me. Here's some more feedback:
      > The problem seems to be that when gvim is called with parameters that
      > must include double quotes ("), those double quotes are not properly
      > passed to the command-line. I have tried escaping the double quotes
      > with backslashes but that doesn't help.
      > Building on the info you gave me, I now find that if I save a new
      > script called, let's say, gvim2html, with this command:
      > /Applications/vim/Vim.app/Contents/MacOS/Vim -g -c "runtime!
      > syntax/2html.vim" \
      > -c "wq" -c "q" $1 &
      > and then enter in the Terminal:
      > $ gvim2html Hello.java
      > all works well and I get the html file with the GUI colors!
      > So, I guess the question left is whether it is possible to write a gvim
      > script that will take all the parameters that
      > /Applications/vim/Vim.app/Contents/MacOS/Vim -g would otherwise take.

      So it is a shell-script problem, not a vim problem. Since this
      affects the gvim shell script distributed with the OS X binaries, I will
      cc this to the vim-mac mailing list.

      --Benji Fisher
    • Show all 6 messages in this topic