more correct foldcontrol for insert mode
This commit is contained in:
parent
010ddd20d0
commit
5ed2f2ff76
@ -169,13 +169,13 @@ let s:notcomment = '\%(\%(\\\@<!\%(\\\\\)*\)\@<=%.*\)\@<!'
|
|||||||
|
|
||||||
" {{{1 s:fdm_restore
|
" {{{1 s:fdm_restore
|
||||||
function! s:fdm_restore()
|
function! s:fdm_restore()
|
||||||
silent execute 'setlocal foldmethod=' . s:fdm
|
let &l:foldmethod = s:fdm
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" {{{1 s:fdm_save
|
" {{{1 s:fdm_save
|
||||||
let s:fdm=''
|
let s:fdm=''
|
||||||
function! s:fdm_save()
|
function! s:fdm_save()
|
||||||
let s:fdm = &foldmethod
|
let s:fdm = &l:foldmethod
|
||||||
setlocal foldmethod=manual
|
setlocal foldmethod=manual
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user