From 34f0ea4f4bd55c1917217ab733573e07616b968f Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 2 Aug 2018 11:11:09 +1200 Subject: Add 'confirm' I'm not sure I'll like this, but it's worth a go instead of manually adding bangs to each command. --- vim/vimrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vim/vimrc b/vim/vimrc index 3c5a4d4a..77957e34 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -58,6 +58,9 @@ silent! set breakindent " Clear default 'comments' value, let the filetype handle it set comments= +" Give me a prompt instead of just rejecting risky :write, :saveas +set confirm + " Try to keep swapfiles in one system-appropriate dir set directory^=~/.vim/cache/swap//,~/vimfiles/cache/swap// -- cgit v1.2.3