From 6a679df97f4058d5c59d972a7b3029598da5dd67 Mon Sep 17 00:00:00 2001 From: Marcelo D Montu Date: Fri, 19 Dec 2014 15:00:31 -0200 Subject: [PATCH] Fix box and bbox snippets outside the first column --- UltiSnips/all.snippets | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/UltiSnips/all.snippets b/UltiSnips/all.snippets index f816ba4..e33d2c5 100644 --- a/UltiSnips/all.snippets +++ b/UltiSnips/all.snippets @@ -78,10 +78,12 @@ endglobal snippet box "A nice box with the current comment symbol" b `!p box = make_box(len(t[1])) -snip.rv = box[0] + '\n' + box[1] +snip.rv = box[0] +snip += box[1] `${1:content}`!p box = make_box(len(t[1])) -snip.rv = box[2] + '\n' + box[3]` +snip.rv = box[2] +snip += box[3]` $0 endsnippet @@ -89,10 +91,12 @@ snippet bbox "A nice box over the full width" b `!p width = int(vim.eval("&textwidth")) or 71 box = make_box(len(t[1]), width) -snip.rv = box[0] + '\n' + box[1] +snip.rv = box[0] +snip += box[1] `${1:content}`!p box = make_box(len(t[1]), width) -snip.rv = box[2] + '\n' + box[3]` +snip.rv = box[2] +snip += box[3]` $0 endsnippet