From 5e621f3e1bfe6ba1a1af82c248493f1743379ef1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Yngve=20Lerv=C3=A5g?= Date: Thu, 4 Aug 2016 22:15:51 +0200 Subject: [PATCH] Allow nonzero indentation on first line (#511) --- indent/tex.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/indent/tex.vim b/indent/tex.vim index 687f10d..aa52637 100644 --- a/indent/tex.vim +++ b/indent/tex.vim @@ -23,7 +23,7 @@ setlocal indentkeys+=[,(,{,),},],\&,=item function! VimtexIndent(lnum) " {{{1 let l:nprev = s:get_prev_line(prevnonblank(a:lnum - 1)) - if l:nprev == 0 | return 0 | endif + if l:nprev == 0 | return indent(a:lnum) | endif " Get current and previous line and remove comments let l:cur = substitute(getline(a:lnum), '\\\@