2012-04-30

zencoding.vim が書き出す HTML の lang="en" を lang="ja" に変更する方法

zencoding.vim を導入していると、
Vim で html:4s と入力したあとに「Ctrl+y ,」と打つするだけで、
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
  <title></title>
</head>
<body>
  
</body>
</html>
と、ここまで展開してくれて、めちゃくちゃ便利。
けど、lang="en" じゃないんだよなーと毎回 lang="ja" に打ちかえていたところ、最近になってようやく抜本的な解決策を発見。
こちらのコメントによると、
let g:user_zen_settings = {
\  'lang' : 'ja',
\}
_vimrc に入れておけばいいみたい。
ありがたやー。

3 comments:

  1. This would be really convenient, but how can we set "En" as a default language? Research Paper Writing Services

    ReplyDelete
  2. UOK BCom 3rd year Exam date sheet
    A good post is always beneficial, as your post is making the same effect. Your post is very knowledgeable. I was quite surprised to see your post that you can see such a good post even today. Hope you You will continue to provide similar posts to us as well. Thank you.

    ReplyDelete
  3. best cedar hot tub

    WAJA sauna is specialist manufacturer of top quality sauna products. Products include sauna rooms, steam rooms, barrel saunas, wooden hot tubs, and all kinds of sauna accessories.

    ReplyDelete