vim: select inside dots

后端 未结 5 2131
孤独总比滥情好
孤独总比滥情好 2020-12-16 17:10

I can\'t find a solution (here and on the web) for simply selecting/inserting/deleting stuff surrounded by dots (a common case in development) :

    someobje         


        
5条回答
  •  没有蜡笔的小新
    2020-12-16 18:03

    I dont know any generic solutions. For select/delete/insert I use regular experssions.

    :%s/\.some-property-with-hyphens\./.i-like-this-property./g
    

    To just select

    /\.some-property-with-hypehns\.
    

    A more generic rule

    /\.[\-a-zA-Z0-9]*\.
    

    Hope this is what you are asking.

提交回复
热议问题