diff options
Diffstat (limited to 'ftplugin')
-rw-r--r-- | ftplugin/rst.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ftplugin/rst.vim b/ftplugin/rst.vim index 3c1e9032..064bd88e 100644 --- a/ftplugin/rst.vim +++ b/ftplugin/rst.vim @@ -38,7 +38,7 @@ if exists("g:rst_style") && g:rst_style != 0 setlocal expandtab shiftwidth=3 softtabstop=3 tabstop=8 endif -if has('patch-7.3.867') " Introduced the TextChanged event. +if g:rst_fold_enabled != 0 && has('patch-7.3.867') " Introduced the TextChanged event. setlocal foldmethod=expr setlocal foldexpr=RstFold#GetRstFold() setlocal foldtext=RstFold#GetRstFoldText() |