summaryrefslogtreecommitdiffstats
path: root/runtime/ftplugin/lua.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-12-14 21:17:39 +0100
committerBram Moolenaar <Bram@vim.org>2011-12-14 21:17:39 +0100
commitf1568eca24d30d4f308e987657c53cd48d97d8fa (patch)
tree900c802d8096eca43c957c0b3c16cc36cec32e7b /runtime/ftplugin/lua.vim
parentf788a0610309ed9787b4e48216c7d7d4446744c5 (diff)
Update runtime files.
Diffstat (limited to 'runtime/ftplugin/lua.vim')
-rw-r--r--runtime/ftplugin/lua.vim10
1 files changed, 7 insertions, 3 deletions
diff --git a/runtime/ftplugin/lua.vim b/runtime/ftplugin/lua.vim
index 297833f4fb..fc581db7c6 100644
--- a/runtime/ftplugin/lua.vim
+++ b/runtime/ftplugin/lua.vim
@@ -1,7 +1,7 @@
" Vim filetype plugin file.
" Language: Lua 4.0+
" Maintainer: Max Ischenko <mfi@ukr.net>
-" Last Change: 2008 Mar 25
+" Last Change: 2011 Dec 10 by Thilo Six
" Only do this when not done yet for this buffer
if exists("b:did_ftplugin")
@@ -11,6 +11,9 @@ endif
" Don't load another plugin for this buffer
let b:did_ftplugin = 1
+let s:cpo_save = &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".
setlocal fo-=t fo+=croql
@@ -22,8 +25,6 @@ setlocal suffixesadd=.lua
" The following lines enable the macros/matchit.vim plugin for
" extended matching with the % key.
-
-set cpo-=C
if exists("loaded_matchit")
let b:match_ignorecase = 0
@@ -34,3 +35,6 @@ if exists("loaded_matchit")
\ '\<repeat\>:\<until\>'
endif " exists("loaded_matchit")
+
+let &cpo = s:cpo_save
+unlet s:cpo_save