1
0
forked from aniani/vim

runtime: set 'cpoptions' for line-continuation in various runtime files

closes: #17121

Signed-off-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Eisuke Kawashima
2025-04-16 18:20:59 +02:00
committed by Christian Brabandt
parent 470317f78b
commit fbbaa6ebe9
15 changed files with 108 additions and 3 deletions

View File

@@ -2,7 +2,9 @@
" Language: LambdaProlog (Teyjus)
" Maintainer: Markus Mottl <markus.mottl@gmail.com>
" URL: http://www.ocaml.info/vim/ftplugin/lprolog.vim
" Last Change: 2023 Aug 28 - added undo_ftplugin (Vim Project)
" Last Change: 2025 Apr 16
" 2025 Apr 16 - set 'cpoptions' for line continuation
" 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)
@@ -12,6 +14,9 @@ if exists("b:did_ftplugin")
finish
endif
let s:cpo_save = &cpo
set cpo&vim
" Don't do other file type settings for this buffer
let b:did_ftplugin = 1
@@ -43,3 +48,6 @@ if !exists("no_plugin_maps") && !exists("no_lprolog_maps")
vnoremap <buffer> <Plug>BUncomOn <ESC>:'<,'><CR>`<O<ESC>0i/*<ESC>`>o<ESC>0i*/<ESC>`<
vnoremap <buffer> <Plug>BUncomOff <ESC>:'<,'><CR>`<dd`>dd`<
endif
let &cpo = s:cpo_save
unlet s:cpo_save