Skip to content

Instantly share code, notes, and snippets.

@ysawa
Created October 13, 2011 04:59
Show Gist options
  • Save ysawa/1283428 to your computer and use it in GitHub Desktop.
Save ysawa/1283428 to your computer and use it in GitHub Desktop.
add magic comment
function! MagicComment()
return "# -*- coding: utf-8 -*-\<CR>"
endfunction
inoreabbrev <buffer> ## <C-R>=MagicComment()<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment