mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2026-01-25 20:36:56 +08:00
Preserve shiftwidth across loading sub-syntax indent files
This commit is contained in:
@@ -49,6 +49,9 @@ let s:has_init_indent = vue#GetConfig("has_init_indent",
|
|||||||
" Load indent method {{{
|
" Load indent method {{{
|
||||||
"
|
"
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
" Save shiftwidth
|
||||||
|
let s:sw = &sw
|
||||||
|
|
||||||
" Use lib/indent/ files for compatibility
|
" Use lib/indent/ files for compatibility
|
||||||
unlet! b:did_indent
|
unlet! b:did_indent
|
||||||
runtime lib/indent/xml.vim
|
runtime lib/indent/xml.vim
|
||||||
@@ -92,6 +95,9 @@ if s:use_typescript
|
|||||||
unlet! b:did_indent
|
unlet! b:did_indent
|
||||||
runtime! indent/typescript.vim
|
runtime! indent/typescript.vim
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Recover shiftwidth
|
||||||
|
let &sw = s:sw
|
||||||
"}}}
|
"}}}
|
||||||
|
|
||||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||||
|
|||||||
Reference in New Issue
Block a user