On 03/25/2011 03:17 PM, [email protected] wrote:
I used

     :/pattern

instead of

     /pattern/

In a function, they should be the same.  E.g:

 function! Tim()
   /pattern/
 endfunction

and

 function! Meino()
  :/pattern/
 endfunction!

should be exactly the same.

and I also add "the let-magick" to my script and...

TADA! ...it works!

Given the identical-nature mentioned above, that doesn't surprise me.

Last question I have (before the next one ;) is:
Why does it work?

THAT, has me stumped :)

I've just found that sometimes searching for something by one method (by search, assigning via :let, in a :g or :s command, etc) doesn't always trigger it in all the search cases.

-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