leaf
25e386280c
Merge pull request #45 from leafOfTree/undo-ftplugin
...
Undo ftplugin and indent settings when filetype changes
2026-10-21 20:22:29 +08:00
leafOfTree
07df7903af
Undo ftplugin and indent settings when filetype changes
...
Set b:undo_ftplugin for matchpairs, matchit variables, b:syng_str and
the foldexpr settings, and b:undo_indent for indent settings, instead of
relying on whichever indent file was loaded last.
2026-10-21 12:12:56 +00:00
leafOfTree
abb7144824
Support shiftwidth=0 in indent and fold
...
With shiftwidth=0, Vim uses the value of tabstop, but &sw is 0. So
multiline tags and brackets got wrong indent, and fold levels were wrong
as indent was divided by 0. Use shiftwidth() instead, which is the same
as &sw when it isn't 0.
2026-10-21 12:11:58 +00:00
leafOfTree
a8decb75b1
Remove fold timer to support makeview/loadview
2021-11-05 17:50:11 +08:00
leafOfTree
7f4c259d27
Fix fold level of blank lines in <script>
2021-09-10 13:20:12 +08:00
leafOfTree
9ae107ea6f
Fix script fold issue
2021-05-10 14:02:08 +08:00
leafOfTree
b8cbd66359
Use user's option when setting
2021-05-10 13:25:38 +08:00
leafOfTree
8a913af7a6
setlocal foldenable to default value (on)
2021-04-23 13:06:51 +08:00
leafOfTree
d080255fce
Fix foldexpr
2021-04-19 14:20:37 +08:00
leafOfTree
59e9825606
Fix foldexpr on config and custom blocks
2021-04-06 13:37:00 +08:00
leafOfTree
a5e3c10795
Enable fodexpr initially when the line number is less than 1000
2020-11-20 11:46:14 +08:00
leafOfTree
b22a41fb6b
Use a help function to get user config
2020-07-17 08:45:06 +08:00
leafOfTree
6a958cedcc
Handle folding in script and template/style separately
2020-04-13 14:53:02 +08:00
leafOfTree
4b0e807db4
Fix typo
2019-09-25 14:24:27 +08:00
leafOfTree
26459d2c84
Fix incorrect fold for template
2019-09-25 14:22:16 +08:00
leafOfTree
728e293c29
Support fold-syntax foldmethod
2019-08-27 16:15:10 +08:00
yemai
19245b09f6
refact: improve format
2019-08-15 16:21:54 +08:00
yemai
cf54537328
chore: improve comment
2019-08-15 16:15:17 +08:00
yemai
4cfe8362fd
chore: replace tabs with spaces
2019-08-15 16:13:26 +08:00
yemai
02029e1ae1
feat: add fold
2019-08-15 16:06:20 +08:00