Skip to content

Commit

Permalink
给vim缩进函数添加行首的等号的缩进
Browse files Browse the repository at this point in the history
  • Loading branch information
A4-Tacks committed Dec 10, 2024
1 parent 282f3f0 commit e2039ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion syntax/vim/mdtlbl.vim
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function! <SID>getMdtlblIndent()
let diff -= 1
endif

let pat = '^\v%(\.\.@!|-\>)'
let pat = '^\v%(\.\.@!|-\>|\=)'

if preline =~# pat && preline !~# '[:({\[]$'
let diff -= 1
Expand All @@ -160,6 +160,7 @@ setlocal indentkeys+==)
setlocal indentkeys+==:
setlocal indentkeys+==.
setlocal indentkeys+=0->
setlocal indentkeys+=0=

" END And Color Links {{{1
hi def link mdtlblKeyword Keyword
Expand Down

0 comments on commit e2039ef

Please sign in to comment.