Made Ctrl-s even more annoying ;)

This commit is contained in:
Talia 2018-02-09 08:35:33 +01:00
parent 434be3251f
commit 171b571938

10
vimrc
View file

@ -390,15 +390,19 @@ noremap <space> :
noremap <C-space> @: noremap <C-space> @:
noremap Q @q noremap Q @q
nnoremap <S-space> gQ nnoremap <S-space> gQ
" noremap <C-s> :w<CR> " 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() 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" if input("Type 'save' to save: ") ==? "save"
write write
echo "File saved, but was it really necessary?"
else else
echo "Calm the fuck down man!" echo "Calm the fuck down man!"
end end
unlet b:rightsave
endfun endfun
noremap <C-s> :call <sid>saveprompt()<CR> noremap <C-s> :call <sid>saveprompt()<CR>
nnoremap <C-n> :bnext<CR> nnoremap <C-n> :bnext<CR>