aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-02 11:11:09 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-02 11:11:09 +1200
commit34f0ea4f4bd55c1917217ab733573e07616b968f (patch)
tree1400ceeca2a6e21e50d5bd99a0e04f2192af43c3
parentb3a4111df7b7f71e637c82e6706525b52d8fd41f (diff)
downloaddotfiles-34f0ea4f4bd55c1917217ab733573e07616b968f.tar.gz
dotfiles-34f0ea4f4bd55c1917217ab733573e07616b968f.zip
Add 'confirm'
I'm not sure I'll like this, but it's worth a go instead of manually adding bangs to each command.
-rw-r--r--vim/vimrc3
1 files changed, 3 insertions, 0 deletions
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//