Ok, this is really confusing me:

fun! Pgrep(patten)
    echo a:pattern

call Pgrep('hello')
* dutifully echoes hello.


fun Pgrep(pattern, file)
    grep a:pattern a:file


* a:file -- no such file or directory.

Exactly why is echo substituting arguments when
grep is not?

Ed

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

Reply via email to