var Comments = new Schema({
title : String
, body : String
, date : Date
});
var BlogPost = new Schema({
author : ObjectId
, title : String
, body : String
, date : Date
, comments : [Comments]
, meta : {
votes : Number
, favs : Number
}
});
我的 vim 现在缩进是这样的:
Offer = new Schema({
'title': {type: String},
'discount': {type: String},
});
最佳答案
谢谢大家,我已经从这个 github 存储库中为 javascript 安装了新的缩进文件: JavaScript Indent : Javascript indenter (HTML indent is included)
关于javascript - 如何像这样教 vim 缩进,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5506086/