From 7ffa8f23dfa17a2ef5ed83750569f71c27f3df2e Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Sat, 13 Feb 2016 19:28:12 +0800 Subject: [PATCH] Refactor indent tmpl templates --- indent/gohtmltmpl.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indent/gohtmltmpl.vim b/indent/gohtmltmpl.vim index 50e1361adb..94ea135a44 100644 --- a/indent/gohtmltmpl.vim +++ b/indent/gohtmltmpl.vim @@ -31,13 +31,13 @@ function! GetGoHTMLTmplIndent(lnum) " If need to indent based on last line let last_line = getline(a:lnum-1) if last_line =~ '^\s*{{\s*\%(if\|else\|range\|with\|define\|block\).*}}' - let ind = ind + sw + let ind += sw endif " End of FuncMap block let current_line = getline(a:lnum) if current_line =~ '^\s*{{\s*\%(else\|end\).*}}' - let ind = ind - sw + let ind -= sw endif return ind