All,

I'm a bit puzzled - I can see how to write my own functions, and map
my own keys, but I don't see offhand how to write my own 'ex'
commands..

Is this a simple oversight? I'd like to be able to program

:pgrep

in terms of new, grep and copen. I would have thought that this was
trivial, but doing

map :pgrep ...

simply delays typing my substituted commands until it reaches up to
the second 'p' in 'pgrep', and in any case for some reason,

map :pgrep  'new | grep $* | copen'

immediately executes.

I'd like to be able to type :pgrep <argument>, and have my argument $*
substituted into the above sequence, the same way that
:set grepprg=<myprogram>\ $* defines the grep program in terms of
user-typed input. Is this possible?

Ed

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

Reply via email to