all vim : commands code example
Example 1: select all vim
ggVG
// gg moves to first line.
// V starts visual mode.
// G jumps to last line thereby selecting all content.
Example 2: vim commands
vim filename
i
*Insert/Edit Text*
*Esc*
:wq (save the file and exit to commands)