Skip to content

Instantly share code, notes, and snippets.

@miyohide
Created March 15, 2017 14:57
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 miyohide/60d489c35dc5d04c364ca7dc6791b05d to your computer and use it in GitHub Desktop.
Save miyohide/60d489c35dc5d04c364ca7dc6791b05d to your computer and use it in GitHub Desktop.
function Codefy() range
let start_pos = a:firstline - 1
let end_pos = a:lastline
call append(end_pos, split("```\n", "", 1))
call append(start_pos, split("\n```ruby", "", 1))
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment