* Christian Brabandt <[email protected]> [100212 13:18]:
> On Fr, 12 Feb 2010, John Magolske wrote:
> 
> > I'm trying to write a mapping that'll open a help topic in another
> > GNU Screen tty, so that for example this:
> > 
> >   :H <topic>
> > 
> > will open another Screen tty with the help page for <topic> displayed
> > full screen...
> ...
> I would try this:
> com! -complete=help -nargs=1 H :!screen -t 'Vim-help' vim -c 'help 
> <args>' -c 'only'
> (one line)

Thanks Christian -- that works quite nicely! I just added 'silent':

com! -complete=help -nargs=1 H :silent !screen -t 'Vim-help' vim -c 'help 
<args>' -c 'only'

Solves my immediate concern and teaches me a few more things about
':command' & friends that'll be helpful for other mappings.

Also, Marc, thanks for the suggestions. I can see tabs being a more
portable solution (eg when stuck on an mswin box), may look into that
at some point. For now toggling between Screen tty's is comfortable.

Regards,

John


-- 
John Magolske
http://B79.net/contact

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

Reply via email to