Unable to match one or more whitespaces in Vim

前端 未结 9 645
一个人的身影
一个人的身影 2020-12-28 11:55

I want match spaces at the beginning of lines in Vim

PseudoCode of what I want to do

^( )*

I know the following fr

9条回答
  •  隐瞒了意图╮
    2020-12-28 12:22

    If I understand correctly..

    / * will match 0 or more spaces

    / {0,n} will match 0 to n spaces (where n is a number)

    To match 1 or more space starting from the beginning of the line:

    /^ \+
    

提交回复
热议问题