News for hackers. Stuff that matters.
Re:Editors (Vim) by Ingon on Friday June 05, 2020 @11:53PM (#23436683)
You can put something like this in your .vimrc:

  " save with ctrl+s
  nmap <c-s> :w<CR>
  imap <c-s> <Esc>:w<CR>a
Edit: I guess it should be:

  nmap <D-s> :w<CR>
  imap <D-s> <Esc>:w<CR>a
Re:Editors (Vim) by kdheepak on Saturday June 06, 2020 @01:08AM (#23436979)
You can also use

    imap <C-s> <C-o>:w<CR>

<C-o> in insert mode can be used to execute normal mode commands.