diff --git a/after/ftplugin/text.vim b/after/ftplugin/text.vim new file mode 100644 index 0000000..4ad9c13 --- /dev/null +++ b/after/ftplugin/text.vim @@ -0,0 +1,22 @@ +function! Indent_level(lnum) + return indent(a:lnum) / &shiftwidth +endfunction + +function! Fold(lnum) + let l:c = Indent_level(a:lnum) + let l:n = Indent_level(a:lnum + 1) + let l:p = Indent_level(a:lnum - 1) + + if l:n > l:c + return '>' . l:n + endif + + if l:n < l:c + return '<' . l:c + endif + + return l:c +endfunction + +setlocal foldmethod=expr +setlocal foldexpr=Fold(v:lnum) diff --git a/spell/en.utf-8.add b/spell/en.utf-8.add deleted file mode 100644 index d9c5f40..0000000 --- a/spell/en.utf-8.add +++ /dev/null @@ -1,9 +0,0 @@ -が -(TCs)/? -VAGrENT -VCF -todoist -Covid -title:/? -title: -Todos diff --git a/spell/en.utf-8.add.spl b/spell/en.utf-8.add.spl deleted file mode 100644 index d3065f3..0000000 Binary files a/spell/en.utf-8.add.spl and /dev/null differ