Note: this question has two sort of answers on StackOverflow but I thought perhaps a better answer would come from here, and, if not, at least it will be documented where it should be:
What is the semantic meaning of the letter g
in normal mode commands? I have used the heck out of gg
, G
, and <n>G
, but until today, I had never thought to find out what the semantics of g
are in the larger Zen of Vi.
Today I had to lowercase a bunch of constants in my code, and I figured there had to be a better way than character by character (since <n>~
doesn't work, for whatever odd reason that I am unaware of). I found it in g~
, specifically g~iw
.
This led me to find the linked answers, but they have less than satisfying explanations, and are on StackOverflow, and not vi.SE, to boot.
So,
What is the vi-semantic meaning of g
?
By vi-semantic meaning, I expect people to understand, as ciw
means change in word, so c
means change, i
, means inner text item, and w
means word delineated by space or punctuation excluding _
.
P.S., how do I tag this?