RE: mac-osx and open

2008-11-09 Fir de Conversatie John Beckett

Nico Weber wrote:
> If I remember correctly, you added that about a year ago 
> after I sent you a patch. So I guess the wiki is just outdated.

Any chance you could update the tip? I recommend deleting any info that applies 
only
to older Vim (before, say, Vim 7.0, but even 7.1 if it simplifies a tip). If you
believe that the tip is ok for current Vim, remove the {{review}} line.

http://vim.wikia.com/wiki/Preview_current_HTML_in_browser_on_Mac_OS_X

John


--~--~-~--~~~---~--~~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: mac-osx and open

2008-11-09 Fir de Conversatie Charles E. Campbell, Jr.

Nico Weber wrote:
> Hi Charles,
>
> On 09.11.2008, at 16:32, Charles E. Campbell, Jr. wrote:
>
>   
>> I was browsing the wiki -- and I noticed the tip "Preview current HTML
>> in browser on Mac OS X" (well, a comment to it does):
>>  let g:netrw_browsex_viewer = 'open'
>> so that the viewer triggered by "x" in the netrw browser will work  
>> on a
>> mac.  I'm not a mac user (yet), so for you mac user types:
>>
>>  Would it be a good idea to use "open" if has("gui_mac") is true?
>> 
>
> This is probably better discussed on vim_mac, but:
>
> Yes, it's a good idea to use "open", but as far as I understand,  
> that's what's already happening. From the netrw.vim that ships with  
> the latest MacVim snapshot:
>
>elseif has("macunix") && executable("open")
> "   call Decho("exe silent !open ".shellescape(fname,1)." ".redir)
> exe "silent !open ".shellescape(fname,1)." ".redir
>
> If I remember correctly, you added that about a year ago after I sent  
> you a patch. So I guess the wiki is just outdated.
>   

I was thinking that I'd done something -- but searcing for gui_mac 
wasn't finding anything.  I'm guessing that "macunix" is likely to be 
better, anyway.

Glad not to need to do anything!  and thanks (probably again) for that 
patch.

Regards,
Chip Campbell


--~--~-~--~~~---~--~~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: mac-osx and open

2008-11-09 Fir de Conversatie Nico Weber

Hi Charles,

On 09.11.2008, at 16:32, Charles E. Campbell, Jr. wrote:

> I was browsing the wiki -- and I noticed the tip "Preview current HTML
> in browser on Mac OS X" (well, a comment to it does):
>  let g:netrw_browsex_viewer = 'open'
> so that the viewer triggered by "x" in the netrw browser will work  
> on a
> mac.  I'm not a mac user (yet), so for you mac user types:
>
>  Would it be a good idea to use "open" if has("gui_mac") is true?

This is probably better discussed on vim_mac, but:

Yes, it's a good idea to use "open", but as far as I understand,  
that's what's already happening. From the netrw.vim that ships with  
the latest MacVim snapshot:

   elseif has("macunix") && executable("open")
"   call Decho("exe silent !open ".shellescape(fname,1)." ".redir)
exe "silent !open ".shellescape(fname,1)." ".redir

If I remember correctly, you added that about a year ago after I sent  
you a patch. So I guess the wiki is just outdated.

Nico

--~--~-~--~~~---~--~~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



mac-osx and open

2008-11-09 Fir de Conversatie Charles E. Campbell, Jr.

Hello!

I was browsing the wiki -- and I noticed the tip "Preview current HTML 
in browser on Mac OS X" (well, a comment to it does):
  let g:netrw_browsex_viewer = 'open'
so that the viewer triggered by "x" in the netrw browser will work on a 
mac.  I'm not a mac user (yet), so for you mac user types:

  Would it be a good idea to use "open" if has("gui_mac") is true?

Regards,
Chip Campbell


--~--~-~--~~~---~--~~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---