Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions ftplugin/plsql.vim
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,24 @@
" 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
" Last Change: Jun 09, 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

setlocal commentstring=--\ %s
setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:--

let b:undo_ftplugin = "setl com< cms<"

let s:cpo_save = &cpo
set cpo&vim

if get(g:,"plsql_fold",0) == 1
setlocal foldmethod=syntax
let b:undo_ftplugin = "setl fdm< "
let b:undo_ftplugin .= "|setl fdm< "
endif

let &cpo = s:cpo_save
Expand Down