0

How can I automatically :w save a file after each keypress?

Devs who have used editors like PHPStorm know this is particularly handy so I was looking for a way to achieve the same with vim.

3
  • 1
    stackoverflow.com/questions/6991638/…
    – Zorzi
    Apr 27, 2021 at 18:57
  • 1
    Welcome to Vi and Vim! @Zorzi perhaps we need to cite that Q&A? If you want to post the answer, by all means, go ahead (and, on the off-chance that you feel like you're getting rep from someone else's work, I think it's fine, but you can community-wiki to opt out of the rep)
    – D. Ben Knoble
    Apr 27, 2021 at 20:13
  • In the todo list of vim there is this: :h 'autosave'. When it's available that might be an interesting built-in solution rather than using autocommands.
    – statox
    Apr 28, 2021 at 11:25

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.