Friday, April 29, 2011

capture result of a global search

does anybody know if there is a way to capture the result of a global
search in vim.

for example in perl i can do the following
string =~ /(pattern1)someword/i
and $1 will contain patter1.

is something like this possible in vim scripting?

any help is appreciated

--
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

No comments:

Post a Comment