- Improved indentation behavior.
This commit is contained in:
parent
365357b741
commit
2ce74aabd7
@ -573,9 +573,12 @@ function! s:indent_snippet(begin, end)"{{{
|
|||||||
try
|
try
|
||||||
setlocal equalprg=
|
setlocal equalprg=
|
||||||
|
|
||||||
" Indent begin line.
|
" Check use of indent plugin.
|
||||||
call cursor(a:begin, 0)
|
if getline(a:begin+1) !~ '^\t\+'
|
||||||
silent normal! ==
|
" Indent begin line.
|
||||||
|
call cursor(a:begin, 0)
|
||||||
|
silent normal! ==
|
||||||
|
endif
|
||||||
|
|
||||||
let base_indent = matchstr(getline(a:begin), '^\s\+')
|
let base_indent = matchstr(getline(a:begin), '^\s\+')
|
||||||
for line_nr in range(a:begin+1, a:end)
|
for line_nr in range(a:begin+1, a:end)
|
||||||
|
Loading…
Reference in New Issue
Block a user