Saturday, June 20, 2020

Execute Comand in normal mode in all lines of the file


For example to add the word thiago in the end of all lines of a file
:%normal Athiago


Other Example

To remove, second names from all lines

Joana Dack
Ada Lovelace
Fabia Carla

:%normal WhD

To remove middle name

Joana Dack Silva
Ada Lovelace Silva
Fabia Carla Silva

:%normal Wdw

No comments:

Blog Archive