vim: select inside dots

后端 未结 5 2112
孤独总比滥情好
孤独总比滥情好 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 17:58

    I'm not absolutely sure (I learn new vim features everyday) but I think you can't select between dots with text-objects. So, if it's a common case for you maybe you can create a mapping like the following:

    nnoremap d t.vT.
    

    Just to avoid typing five characters each time you need to select between dots.

提交回复
热议问题