Linux VI and VIM:
Leave a commentJune 22, 2014 by aubreykloppers
Two noteworthy commands:
VI: Do a Substitution on every other line:
:g/^/ if line(‘.’)%2|s/ONE/TWO/
Join every Second Line:
:%norm J
Advertisements
June 22, 2014 by aubreykloppers
VI: Do a Substitution on every other line:
:g/^/ if line(‘.’)%2|s/ONE/TWO/
Join every Second Line:
:%norm J