Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VIM copy a full word that contains a . (dot)

Tags:

vim

vi

i noticed that that if a word contains . (dot), then ywi will only copy until the dot. yet I want to the entire word copied

whole.word should copy whole.word, and not just whole

like image 452
vehomzzz Avatar asked Nov 29 '22 10:11

vehomzzz


1 Answers

I tried in gVim and looks like either yE or yW will work for you.


Oh, sorry. you want to copy. Maybe using yWi would work?


Did you try dW ? I think that should ignore the punctuation.

like image 157
Rachel McMahan Avatar answered Dec 05 '22 00:12

Rachel McMahan