mirror of
https://github.com/amix/vimrc
synced 2025-06-16 09:35:01 +08:00
Updated plugins, added extra configs to make Syntastic work with Go
This commit is contained in:
@ -78,7 +78,7 @@ def get_comment_format():
|
||||
|
||||
|
||||
def make_box(twidth, bwidth=None):
|
||||
b, m, e, i = get_comment_format()
|
||||
b, m, e, i = (s.strip() for s in get_comment_format())
|
||||
bwidth_inner = bwidth - 3 - max(len(b), len(i + e)) if bwidth else twidth + 2
|
||||
sline = b + m + bwidth_inner * m[0] + 2 * m[0]
|
||||
nspaces = (bwidth_inner - twidth) // 2
|
||||
|
@ -16,8 +16,8 @@ snippet marginconvention
|
||||
var ${8:height} = ${9:500} - $1.top - $1.bottom;
|
||||
|
||||
var ${10:svg} = d3.select("${11}").append("svg")
|
||||
.attr("width", $6)
|
||||
.attr("height", $8)
|
||||
.attr("width", $6 + $1.left + $1.right)
|
||||
.attr("height", $8 + $1.top + $1.bottom)
|
||||
.append("g")
|
||||
.attr("transform", "translate(" + $1.left + "," + $1.top + ")")
|
||||
snippet nest
|
||||
|
Reference in New Issue
Block a user