> Hello,
>
> I have a file that contains a bunch of strings such as:
>
> xx10 , xx11, xx12, xx13, ..... , xx1183
>
> I want to find out which of these 1183 strings are NOT in the file.
>
> Is there a way to do this in vim ??
>
You've got an answer, but here is another potential option:
The very first time I used a recursive macro (
http://vim.wikia.com/wiki/Record_a_recursive_macro ), it was for a
similar task. I wanted to see which files were not already included in
my makefile. Though, my goal was to copy the ones that weren't, one by
one, and it kind of relies on the idea that most files ARE in the
makefile. Anyway, maybe you can adapt the method I used, which should
be included in the tip linked above, under "ending the recursion".
I also thought about using a :g command in some fashion, to add to a
dictionary or list of items that DO occur, but I like Tim's method
better.
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment