VIM Course

Other commands

Go back

Any other command that you may use will be stored here.


Save

  • :wq: save and leave
  • :w: save

Exit

  • :q: leave
  • :q!: leave without saving

Undo/Redo

  • u : undo action
  • U : undo all actions of a line
  • CTRL-R : redo

Mystics

  • :! : execute a command
  • :f nom : rename file
  • :e fichier : open another file
  • :r fichier : print and insert file
  • :!gcc : compile inside vim
  • CTRL-G : show your position inside the file