Fix more 'cpo' issues in runtime files.
This commit is contained in:
@ -12,5 +12,4 @@ endif
|
||||
run ftplugin/lisp.vim
|
||||
|
||||
setl lw-=if
|
||||
setl lw+=def-art-fun,deffacts,defglobal,defrule,defschema,
|
||||
\for,schema,while
|
||||
setl lw+=def-art-fun,deffacts,defglobal,defrule,defschema,for,schema,while
|
||||
|
||||
@ -10,6 +10,8 @@ endif
|
||||
|
||||
" Don't load another plugin for this buffer
|
||||
let b:did_ftplugin = 1
|
||||
let s:keepcpo= &cpo
|
||||
set cpo&vim
|
||||
|
||||
" Set 'formatoptions' to break comment lines but not other lines,
|
||||
" and insert the comment leader when hitting <CR> or using "o".
|
||||
@ -22,3 +24,6 @@ if has("gui_win32") && !exists("b:browsefilter")
|
||||
let b:browsefilter = "C# Source Files (*.cs)\t*.cs\n" .
|
||||
\ "All Files (*.*)\t*.*\n"
|
||||
endif
|
||||
|
||||
let &cpo = s:keepcpo
|
||||
unlet s:keepcpo
|
||||
|
||||
@ -8,6 +8,8 @@ let b:did_ftplugin = 1
|
||||
|
||||
setlocal foldmethod=syntax
|
||||
|
||||
" Using line continuation here.
|
||||
let s:cpo_save = &cpo
|
||||
set cpo-=C
|
||||
|
||||
" matchit support
|
||||
@ -26,3 +28,6 @@ if has("gui_win32") && !exists("b:browsefilter")
|
||||
let b:browsefilter = "InstallShield Files (*.rul)\t*.rul\n" .
|
||||
\ "All Files (*.*)\t*.*\n"
|
||||
endif
|
||||
|
||||
let &cpo = s:cpo_save
|
||||
unlet s:cpo_save
|
||||
|
||||
@ -9,6 +9,8 @@ if exists("b:did_ftplugin")
|
||||
finish
|
||||
endif
|
||||
let b:did_ftplugin = 1
|
||||
let s:keepcpo= &cpo
|
||||
set cpo&vim
|
||||
|
||||
"{{{ Indent settings
|
||||
" Set shift width for indent
|
||||
@ -42,3 +44,6 @@ let b:undo_ftplugin = "setlocal shiftwidth< softtabstop< expandtab<"
|
||||
\ . " formatoptions< comments< textwidth<"
|
||||
\ . "| unlet! b:browsefiler"
|
||||
"}}}
|
||||
|
||||
let &cpo = s:keepcpo
|
||||
unlet s:keepcpo
|
||||
|
||||
@ -2,12 +2,14 @@
|
||||
" Language: Pyrex
|
||||
" Maintainer: Marco Barisione <marco.bari@people.it>
|
||||
" URL: http://marcobari.altervista.org/pyrex_vim.html
|
||||
" Last Change: 2004 May 16
|
||||
" Last Change: 2012 May 18
|
||||
|
||||
" Only do this when not done yet for this buffer
|
||||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
endif
|
||||
let s:keepcpo= &cpo
|
||||
set cpo&vim
|
||||
|
||||
" Behaves just like Python
|
||||
runtime! ftplugin/python.vim ftplugin/python_*.vim ftplugin/python/*.vim
|
||||
@ -20,3 +22,6 @@ if has("gui_win32") && exists("b:browsefilter")
|
||||
\ "C++ Source Files (*.cpp *.c++)\t*.cpp;*.c++\n" .
|
||||
\ "All Files (*.*)\t*.*\n"
|
||||
endif
|
||||
|
||||
let &cpo = s:keepcpo
|
||||
unlet s:keepcpo
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
" Language: SQL (Common for Oracle, Microsoft SQL Server, Sybase)
|
||||
" Version: 8.0
|
||||
" Maintainer: David Fishburn <dfishburn dot vim at gmail dot com>
|
||||
" Last Change: 2012 Mar 11
|
||||
" Last Change: 2012 May 18
|
||||
" Download: http://vim.sourceforge.net/script.php?script_id=454
|
||||
|
||||
" For more details please use:
|
||||
@ -67,7 +67,7 @@ if exists("b:did_ftplugin")
|
||||
endif
|
||||
|
||||
let s:save_cpo = &cpo
|
||||
set cpo=
|
||||
set cpo&vim
|
||||
|
||||
" Disable autowrapping for code, but enable for comments
|
||||
" t Auto-wrap text using textwidth
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
" Vim filetype plugin file
|
||||
" Language: Zimbu
|
||||
" Maintainer: Bram Moolenaar <Bram@vim.org>
|
||||
" Last Change: 2012 May 17
|
||||
" Last Change: 2012 May 18
|
||||
|
||||
" Only do this when not done yet for this buffer
|
||||
if exists("b:did_ftplugin")
|
||||
@ -15,7 +15,7 @@ let b:did_ftplugin = 1
|
||||
let s:cpo_save = &cpo
|
||||
set cpo-=C
|
||||
|
||||
let b:undo_ftplugin = "setl fo< com< ofu< | if has('vms') | setl isk< | endif"
|
||||
let b:undo_ftplugin = "setl fo< com< ofu< efm< tw< et< sts< sw< | if has('vms') | setl isk< | endif"
|
||||
|
||||
" Set 'formatoptions' to break comment lines but not other lines,
|
||||
" and insert the comment leader when hitting <CR> or using "o".
|
||||
|
||||
Reference in New Issue
Block a user