I actually tried that command in vim, but got the message:
E15: Invalid expression: let lst=[] | for i in range(1,10)| if
(!search('xx'.i.'\>')) | call add(lst, i) | endif | endfor
Also, for my case should I not be doing: range(1,1183) ??
Thank you once again,
--------------------------------------------------------
Assuming that the "xx" portion is constant across each line
(instead of a regexp you're eliding), I'd do it by searching for
each pattern and building a list of those that don't match:
:let lst=[] | for i in range(1,10)| if (!search('xx'.i.'\>'))
| call add(lst, i) | endif | endfor
--
View this message in context: http://old.nabble.com/search-for-absent-strings-tp27300325p27307966.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
No comments:
Post a Comment