Thank you Christian, when I do :echo lst
I get an array of numbers, but I can't copy and paste them into a file for some reason. When I highlight them it doesn't actually copy properly, and I can't copy them using CTRL+V. The only option is gives me is to press ENTER, which causes the numbers to disappear and brings me back to the main document. Christian Brabandt-3 wrote: > > Hi drlatex! > > On Di, 26 Jan 2010, drlatex wrote: > >> To see the result, I've tried >> :echo lst > > What did it return? If it returned [] it means, all items were found in > your file. > > Were those keywords by any chance in the same file (e.g. in the first > line?) Then I would have changed Tim's command like this: > > let a=split(getline(1), '\s*,\s*') > for arg in a | if search(arg, 'Wn')>1 | call filter(a, 'v:val=~arg') | > endif| endfor > > (in case, all your keywords are in line 1. If they were in line 2 > exchange both 1 by 2) > > regards, > Christian > > -- > You received this message from the "vim_use" maillist. > For more information, visit http://www.vim.org/maillist.php > > -- View this message in context: http://old.nabble.com/search-for-absent-strings-tp27300325p27329929.html Sent from the Vim - General mailing list archive at Nabble.com. -- You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php
