I am trying to improve my skill with vim. And I know ESC : w for to save.
But in normal mode the shortcut for w is for "to the next word".
is there another key for to save quickly? or I need press ESC and :.
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityIf you already are in normal mode, you don't need the ESC part. It's just : + w + ENTER
Unlike ZZ
for save+quit, I'm not aware of any shortcut to save. It's up to us to map the save action to anything of our liking.
My early days with Borland IDEs had me have the following in my .vimrc
. Others map on CTRL+S.
nnoremap <F2> :<c-u>update<CR>
inoremap <F2> <c-o>:update<CR>
vnoremap <F2> <c-c>:update<CR>gv
PS: Unlike :write
, :update
doesn't touch
a file that is not modified.
:w
(and Enter of course).:
isshift+;
. Pretty much the same effort as yours.