On 03/09/12 14:03, Cesar Romani wrote:
On 09/03/2012 02:34 p.m., Tim Chase wrote:
  >  Is there any reason you're trying to do it with an :exec rather than
  >  just calling it directly?

Because I'm using it inside a function

That doesn't preclude you from using the straight :s form in the function:

  function! Foo()
    s/.../bar/g
  endfunction

works just fine.

I think, with the parentheses it should be:

Whoops...I grabbed the wrong email to copy from.  Sorry about that.

-tim


--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to