I frequently search in my files using /
, and \c
is really helpful in these situations. Is there any similar way to ignore white space and line breaks? It would really be nice to be able to add something, like \<something>
, to the search
/the words I am looking for
so that it would match this, even if there where multiple white spaces and line breaks in-between the words. It is a bit tedious to have to write
/the\_\s*words\_\s*I\_\s*am\_\s*looking\_\s*for
every time I want to search. In this example I somehow indicated that it was the spaces that represented the places where the extra white space or line breaks could occur, however, it would not bother me if it also matched something like
t h e wo r d sI a m l o o k i ngfor
as there will usually not be any "silly" matches of this sort (or at least few) in the searches I make.
I am not in very high hopes that this is possible, and, in case there is nothing like this, is there other ways to obtain something similar, with a function maybe. However, it is only relevant, it if makes it easier than typing
/the\_\s*words\_\s*I\_\s*am\_\s*looking\_\s*for