summaryrefslogtreecommitdiffstats
path: root/ftplugin/rst.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2022-04-18 12:08:27 +0200
committerAdam Stankiewicz <sheerun@sher.pl>2022-04-18 12:08:27 +0200
commitdb7bb8ba22f5798bf3abe9f786bc6e6d002725f8 (patch)
treec9d2fd8bead22a93f2c0eb0bd8abe14efe32f509 /ftplugin/rst.vim
parentaae85fe8c2a5878aee89ff8025306f3142962b5f (diff)
downloadvim-polyglot-db7bb8ba22f5798bf3abe9f786bc6e6d002725f8.tar.gz
vim-polyglot-db7bb8ba22f5798bf3abe9f786bc6e6d002725f8.zip
Update
Diffstat (limited to 'ftplugin/rst.vim')
-rw-r--r--ftplugin/rst.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/ftplugin/rst.vim b/ftplugin/rst.vim
index 7c4a82a6..719d9fe7 100644
--- a/ftplugin/rst.vim
+++ b/ftplugin/rst.vim
@@ -22,7 +22,7 @@ if !exists('g:rst_fold_enabled')
let g:rst_fold_enabled = 0
endif
-let b:undo_ftplugin = "setl com< cms< et< fo<"
+let b:undo_ftplugin = "setlocal comments< commentstring< expandtab< formatoptions<"
setlocal comments=fb:.. commentstring=..\ %s expandtab
setlocal formatoptions+=tcroql
@@ -36,6 +36,7 @@ setlocal formatoptions+=tcroql
if exists("g:rst_style") && g:rst_style != 0
setlocal expandtab shiftwidth=3 softtabstop=3 tabstop=8
+ let b:undo_ftplugin .= " | setlocal softtabstop< shiftwidth< tabstop<"
endif
if g:rst_fold_enabled != 0 && has('patch-7.3.867') " Introduced the TextChanged event.
@@ -45,6 +46,7 @@ if g:rst_fold_enabled != 0 && has('patch-7.3.867') " Introduced the TextChanged
augroup RstFold
autocmd TextChanged,InsertLeave <buffer> unlet! b:RstFoldCache
augroup END
+ let b:undo_ftplugin .= " | setlocal foldexpr< foldmethod< foldtext<"
endif
let &cpo = s:cpo_save