Excerpts from John Magolske's message of Fri Feb 12 21:32:09 +0100 2010: > 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 tried: > > command -nargs=+ H :!screen -t 'Vim-help' vim -c help > > But that just opens another tty with Vim displaying a help screen > for *help.txt* regardless of what is input for <topic>. How can a > Vim ':command' argument be passed through Screen to the other Vim > instance?
Have a closer look at :h command. You'll find stuff like <q-args> <f-args> etc. You can use them to pass the command arguments. By the way I never have the need for your use case. Maybe that's because - I use tabs. So I don't need another screen window - I use markers (:h mark-motions) And I've mappend :h<space> so I'm fast reopening a help window. Marc Weber -- You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php
