Script local indent function was not recognized
This commit is contained in:
parent
e290144c3a
commit
94b39193eb
@ -16,11 +16,11 @@ let s:cpo_save = &cpo
|
||||
set cpo&vim
|
||||
|
||||
setlocal autoindent
|
||||
setlocal indentexpr=s:vimtex_indent()
|
||||
setlocal indentexpr=VimtexIndent()
|
||||
setlocal indentkeys&
|
||||
setlocal indentkeys+=[,(,{,),},],\&,=\\item
|
||||
|
||||
function! s:vimtex_indent() " {{{1
|
||||
function! VimtexIndent() " {{{1
|
||||
" Find a non-blank non-comment line above the current line
|
||||
let lnum = prevnonblank(v:lnum - 1)
|
||||
while lnum != 0 && getline(lnum) =~# '^\s*%'
|
||||
|
Loading…
x
Reference in New Issue
Block a user