runtime: Set b:undo_ftplugin where missing (#12943)

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
dkearns
2023-08-29 05:32:27 +10:00
committed by GitHub
parent fe1463674c
commit f937ab32a1
16 changed files with 132 additions and 69 deletions

View File

@ -2,7 +2,8 @@
" Language: LambdaProlog (Teyjus)
" Maintainer: Markus Mottl <markus.mottl@gmail.com>
" URL: http://www.ocaml.info/vim/ftplugin/lprolog.vim
" Last Change: 2006 Feb 05
" Last Change: 2023 Aug 28 - added undo_ftplugin (Vim Project)
" 2006 Feb 05
" 2001 Sep 16 - fixed 'no_mail_maps'-bug (MM)
" 2001 Sep 02 - initial release (MM)
@ -15,11 +16,13 @@ endif
let b:did_ftplugin = 1
" Error format
setlocal efm=%+A./%f:%l.%c:\ %m formatprg=fmt\ -w75\ -p\\%
setlocal efm=%+A./%f:%l.%c:\ %m
" Formatting of comments
setlocal formatprg=fmt\ -w75\ -p\\%
let b:undo_ftplugin = "setlocal efm< fp<"
" Add mappings, unless the user didn't want this.
if !exists("no_plugin_maps") && !exists("no_lprolog_maps")
" Uncommenting
@ -28,6 +31,11 @@ if !exists("no_plugin_maps") && !exists("no_lprolog_maps")
vmap <buffer> <LocalLeader>c <Plug>BUncomOn
nmap <buffer> <LocalLeader>C <Plug>LUncomOff
vmap <buffer> <LocalLeader>C <Plug>BUncomOff
let b:undo_ftplugin ..=
\ " | silent! execute 'nunmap <buffer> <LocalLeader>c'" ..
\ " | silent! execute 'vunmap <buffer> <LocalLeader>c'" ..
\ " | silent! execute 'nunmap <buffer> <LocalLeader>C'" ..
\ " | silent! execute 'vunmap <buffer> <LocalLeader>C'"
endif
nnoremap <buffer> <Plug>LUncomOn mz0i/* <ESC>$A */<ESC>`z