From 171b571938f4bf040344fe56c43bfb56df5be8a2 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Fri, 9 Feb 2018 08:35:33 +0100 Subject: [PATCH] Made Ctrl-s even more annoying ;) --- vimrc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/vimrc b/vimrc index fcea5cb..2b863f1 100644 --- a/vimrc +++ b/vimrc @@ -390,15 +390,19 @@ noremap : noremap @: noremap Q @q nnoremap gQ -" noremap :w +" This part is just supposed to make saving as inconvenient as possible +" because I have a tendency to just save stuff pretty much as soon as I start +" typing because I'm bored and possibly a bit paranoid. function! s:saveprompt() - let b:rightsave=1 + if &swapfile + echo "You have swap files enabled, stop in-between-saving all the time!" + end if input("Type 'save' to save: ") ==? "save" write + echo "File saved, but was it really necessary?" else echo "Calm the fuck down man!" end - unlet b:rightsave endfun noremap :call saveprompt() nnoremap :bnext