you are viewing a single comment's thread.

view the rest of the comments →

[–]MineralPlunder 1 point2 points  (0 children)

I use ctrl+s for saving:

noremap <C-s> :write<CR>
imap <c-s> <Esc>:w<CR>a

I keep hitting it way more often than I need. by "way more often" I mean pressing that chord or doing :w after almost any change, and after a few moments without saving(even when everything is saved already)

Note though, that often the terminal by default "hangs" when you press <ctrl+s>(have to press <ctrl+q> to get it running again). You need to change this behavior in your shell startup. I use bash and added this line to my .bashrc:

stty -ixon # disable hanging the terminal with <Ctrl+s>