Skip to content

Instantly share code, notes, and snippets.

@codekitchen
Created June 9, 2011 20:17
Show Gist options
  • Save codekitchen/1017621 to your computer and use it in GitHub Desktop.
Save codekitchen/1017621 to your computer and use it in GitHub Desktop.
vim surround commands for canvas i18n extraction
" i key
autocmd FileType eruby let b:surround_105 = "<%= t('\1key: \1', %{\r}) %>"
" o key
autocmd FileType eruby let b:surround_111 = "t('\1key: \1', \r)"
autocmd FileType ruby let b:surround_111 = "t('\1key: \1', \r)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment