使用Zencoding的升级版Emmet

      最近vim7.4也更新了,zengcoding好像停止了更新,更换成emmet了,使用还是和Zencoding一样。

    emmet的地址在http://emmet.io/   支持很多的编辑器和IDE。http://emmet.io/download/ 里面列出了支持的编辑器,vim是第三方的人员开发 的,https://github.com/mattn/emmet-vim  安装方法和Zencoding一样。vimrc里面的设置

let g:user_emmet_expandabbr_key='<c-e>'  
let g:user_emmet_complete_tag=1  
let g:user_emmet_next_key='<c-n>'  
let g:user_emmet_prev_key='<c-p>'  
let g:user_emmet_settings = {  
  'html' : {  
    'filters' : 'html',  
    'snippets' : {  
      'bt' : "<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
    <!--[if lt IE 9]>
      <script src="/assets/js/html5shiv.js"></script>
      <script src="/assets/js/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    ${cursor}${child}
    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
  </body>
</html>",  
      'mn'      : "#include <functional>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <sstream>
#include <iomanip>
#include <numeric>
#include <cstring>
#include <climits>
#include <cassert>
#include <cstdio>
#include <string>
#include <vector>
#include <bitset>
#include <queue>
#include <stack>
#include <cmath>
#include <ctime>
#include <list>
#include <set>
#include <map>
using namespace std;
typedef long long LL;
const int MOD =1e9 + 7;
const int INF = 0x3f3f3f3f;

const int MXN=1e6;
int N,M;

void Rush()
{
	int T;
	scanf("%d",&T);
	for(int kas=1;kas<=T;++kas)
	{
		printf("Case %d: ",kas);
	}
}
int main() 
{
	${cursor}
	return 0;
}
",  
    },  
  },  
}  

同样可以使用Crtl+E的方法。zencoding的文章在:http://www.cnblogs.com/dying/archive/2013/05/22/3092880.html

Live Like You're Dying And Never Stop Tying
原文地址:https://www.cnblogs.com/dying/p/3291001.html