Let's say a buffer has a certain characters I know will be repeated seven (7) times. How can I search for any character repeated seven times?
I know I can search for ..
, but those to characters won't necessarily be the same. There's also a special character (not sure if it's &
) that can be used in substitutions to paste the found string in the replacement field, but I'm also not sure if that's useable again here.
EDIT:
I'm specifically searching for merge conflict markers from git (<<<<<<<
, =======
, or >>>>>>>
- possibly |||||||
), but I'd like to know how to perform this search for any character X, repeating N times, so that I may reapply the knowledge in the future.
Thanks to @DJMcMayhem for the suggestion of vimregex.com; it lead me to search for /\v<<<<<|=====|>>>>>
which caused an error, as each of those are special characters. Escaping those, however (/\v\<\<\<\<\<|\=\=\=\=\=|\>\>\>\>\>
) did succeed in finding what I was looking for, in the short term. I'm still looking for a way to search for character X, repeating N times.