select all text vi code example
Example: select all 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.