vim select entire file command code example
Example: select all in vim
ggVG
// gg moves to first line.
// V starts visual mode.
// G jumps to last line thereby selecting all content.
ggVG
// gg moves to first line.
// V starts visual mode.
// G jumps to last line thereby selecting all content.