VIM copy the full word containing a. (Dot)

I noticed that if the word contains. (dot), then ywi will be copied only to the dot. but I want all the words to be copied

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

+3
source share
4 answers

I tried in gVim and looked like yE or yW would work for you.


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


Have you tried dW? I think this should ignore punctuation.

+7
source

Ye

(there is nothing to reach the limit of the character)

+8
source

yE yiW. , , , whole.word. vim w/b/e/ge "", (w/b/e/ge) "WORD". , :help word Vim.

+3
source

If there is a space after the word you want to copy, you can enter yt<space>, which will be * y ank un t * il . . If there is no space after the word, then hold on to the separator character.

+3
source

Source: https://habr.com/ru/post/1781901/


All Articles