Skip to content

Instantly share code, notes, and snippets.

@enukane
Last active September 23, 2020 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enukane/4a2124d2b4888983f339e18ddcbe3293 to your computer and use it in GitHub Desktop.
Save enukane/4a2124d2b4888983f339e18ddcbe3293 to your computer and use it in GitHub Desktop.
脱Ruby矯正ギプス: ~/.vim/ftplugin/に放り込む
let counter = 1
let dialog_list = [ "Are you really trying to edit ruby file?", "DO you really want to edit ruby file?", "ARE YOU REALLY SURE about editing ruby file?"]
for dialog_text in dialog_list
let select = confirm(dialog_text, "No, I was wrong\nYes I will!")
if select == 2
" keep going
else
quit
endif
endfor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment