Thursday, August 13, 2015

Warning for writing partial file

Today I stumbled on a feature that saved me some headaches. When I accidentally did :'<,'>w instead of just :w Vim warned me that I was trying to write a partial file and asked for confirmation.

Awesome! I chose "no" and lost no work at all.

Is this prompt documented somewhere? It isn't at :help :w. Are there similar prompts for destructive actions I may not know about?

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment