editing mode vim code example Example: vim command to open a file vim filename i *Insert/Edit Text* *Esc* :wq (save the file and exit to commands)