Skip to content

Instantly share code, notes, and snippets.

@kejun
Created February 27, 2013 04:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kejun/5045209 to your computer and use it in GitHub Desktop.
Save kejun/5045209 to your computer and use it in GitHub Desktop.
定制zencoding
let g:user_zen_settings = {
\ 'lang': 'zh-CN',
\ 'html': {
\ 'snippets': {
\ 'html:mobile': "<!DOCTYPE html>\n"
\ ."<html lang=\"${lang}\">\n"
\ ."<head>\n"
\ ."\t<meta charset=\"${charset}\">\n"
\ ."\t<meta name=\"viewport\" content=\"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no\">\n"
\ ."\t<meta name=\"format-detection\" content=\"telephone=no\"/>\n"
\ ."\t<title></title>\n"
\ ."\t<link rel=\"apple-touch-icon-precomposed\" href=\"\">\n"
\ ."</head>\n"
\ ."<body>\n\t${child}|\n</body>\n"
\ ."</html>"
\ }
\ }
\}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment