Re: using counter prefix in a map/command

2006-08-22 Thread Charles E Campbell Jr
Rodolfo Borges wrote: I did the following command to open man pages inside Vim: nmap K :Man C-RC-WCR command! -bar -nargs=1 DoMan %!/usr/bin/man -P cat args command! -bar -nargs=1 Man \ new \| DoMan args \| %s/.^H//g \| set filetype=man \| goto 1 \| set buftype=nofile It works nice,

Re: using counter prefix in a map/command

2006-08-22 Thread Charles E Campbell Jr
Yakov Lerner wrote: On 8/21/06, Rodolfo Borges [EMAIL PROTECTED] wrote: I did the following command to open man pages inside Vim: nmap K :Man C-RC-WCR command! -bar -nargs=1 DoMan %!/usr/bin/man -P cat args command! -bar -nargs=1 Man \ new \| DoMan args \| %s/.^H//g \| set filetype=man

using counter prefix in a map/command

2006-08-21 Thread Rodolfo Borges
I did the following command to open man pages inside Vim: nmap K :Man C-RC-WCR command! -bar -nargs=1 DoMan %!/usr/bin/man -P cat args command! -bar -nargs=1 Man \ new \| DoMan args \| %s/.^H//g \| set filetype=man \| goto 1 \| set buftype=nofile It works nice, but I want also to be able

Re: using counter prefix in a map/command

2006-08-21 Thread A.J.Mechelynck
Rodolfo Borges wrote: I did the following command to open man pages inside Vim: nmap K :Man C-RC-WCR command! -bar -nargs=1 DoMan %!/usr/bin/man -P cat args command! -bar -nargs=1 Man \ new \| DoMan args \| %s/.^H//g \| set filetype=man \| goto 1 \| set buftype=nofile It works nice, but

Re: using counter prefix in a map/command

2006-08-21 Thread Yakov Lerner
On 8/21/06, Rodolfo Borges [EMAIL PROTECTED] wrote: I did the following command to open man pages inside Vim: nmap K :Man C-RC-WCR command! -bar -nargs=1 DoMan %!/usr/bin/man -P cat args command! -bar -nargs=1 Man \ new \| DoMan args \| %s/.^H//g \| set filetype=man \| goto 1 \| set

Re: using counter prefix in a map/command

2006-08-21 Thread A.J.Mechelynck
Rodolfo Borges wrote: On 8/21/06, A.J.Mechelynck [EMAIL PROTECTED] wrote: Since DoMan (and Man) accept only one argument, separating spaces must be escaped, which means you cannot do it with the above K mapping. Oh, really? I never thought such a thing (that is, you cannot do something) would