I want match spaces at the beginning of lines in Vim
PseudoCode of what I want to do
^( )*
I know the following fr
Btw, don't be surprised if you are using the hlsearch option and your whole text lights up after entering / * - instead of just the spaces. That's because zero spaces can match anywhere!
So matching zero or more of anything is only helpful when used in conjunction with something else.
Addition after clarification of question:
To match one or more whitespaces at the beginning of a line do:
/^\s\+
See:
:help whitespace
:help /\+