Hi, I would like to know how to remove everything except pattern.
p.e. hello this is an example, hello to everybody example hello I do a search for hello My output has to be: hellohello hello or hello hello hello using :%s//\=setreg('A', submatch(0), 'l')/g puts every hello on a new line. I don't want to put them on a new line. I checked also the match() function but I haven't found out how to use it. Anyone has an idea how to resolve my problem? Rameo -- 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