Skip to content

Commit

Permalink
Fix a quote
Browse files Browse the repository at this point in the history
  • Loading branch information
sd65 committed Apr 29, 2016
1 parent 4ea708c commit 5270313
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,11 @@ function! MyQuit()
endif
endfunction
function! MySave()
let cantSave = "echo 'Can\'t save the file: ' . v:exception | return"
let cantSave = "echo \"Can't save the file: \" . v:exception | return"
let notSaved = "redraw | echo 'This buffer was NOT saved!' | return"
try
silent w
catch /:E45:\|:E505:/
catch /:E45:\|:E505:\|:E212:/
if (confirm("This buffer is read only! Wanna save it anyway?", "&Yes\n&No", 2)==1)
try
silent w!
Expand Down

0 comments on commit 5270313

Please sign in to comment.