To save current file in vim. In command mode (press ESC first) then :wq or ZZ (that's 2 cap Z's)