From 8e55a5315a90a03c8d505c44b767c61859fcc4d9 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Sun, 9 Mar 2025 17:22:32 +0100 Subject: vim-patch:42e498d: runtime(plsql): move fold option from syntax to filetype plugin closes: vim/vim#16838 https://github.com/vim/vim/commit/42e498d9c41a0260ccddceeb2927c18b508eff54 Co-authored-by: Lee Lindley Co-authored-by: Konfekt --- runtime/ftplugin/plsql.vim | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 runtime/ftplugin/plsql.vim (limited to 'runtime/ftplugin/plsql.vim') diff --git a/runtime/ftplugin/plsql.vim b/runtime/ftplugin/plsql.vim new file mode 100644 index 0000000000..7fcc5d7a5c --- /dev/null +++ b/runtime/ftplugin/plsql.vim @@ -0,0 +1,17 @@ +" Vim ftplugin file +" Language: Oracle Procedural SQL (PL/SQL) +" Maintainer: Lee Lindley (lee dot lindley at gmail dot com) +" Previous Maintainer: Jeff Lanzarotta (jefflanzarotta at yahoo dot com) +" Previous Maintainer: C. Laurence Gonsalves (clgonsal@kami.com) +" URL: https://github.com/lee-lindley/vim_plsql_syntax +" Last Change: Feb 19, 2025 +" History: Enno Konfekt move handling of optional syntax folding from syntax +" file to ftplugin + +if exists("b:did_ftplugin") | finish | endif +let b:did_ftplugin = 1 + +if get(g:,"plsql_fold",0) == 1 + setlocal foldmethod=syntax + let b:undo_ftplugin = "setl fdm< " +endif -- cgit