Mercurial > vim
annotate runtime/ftplugin/lua.vim @ 4442:137f9d41f508 v7.3.969
updated for version 7.3.969
Problem: Can't built with Python 3 and without Python 2.
Solution: Adjust #ifdef. (Xavier de Gaye)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 18 May 2013 20:55:35 +0200 |
parents | 94601b379f38 |
children | 624439a39432 |
rev | line source |
---|---|
7 | 1 " Vim filetype plugin file. |
2 " Language: Lua 4.0+ | |
3 " Maintainer: Max Ischenko <mfi@ukr.net> | |
3410
94601b379f38
Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents:
3224
diff
changeset
|
4 " Last Change: 2012 Mar 07 |
7 | 5 |
6 " Only do this when not done yet for this buffer | |
7 if exists("b:did_ftplugin") | |
8 finish | |
9 endif | |
10 | |
11 " Don't load another plugin for this buffer | |
12 let b:did_ftplugin = 1 | |
13 | |
3224 | 14 let s:cpo_save = &cpo |
15 set cpo&vim | |
16 | |
7 | 17 " Set 'formatoptions' to break comment lines but not other lines, and insert |
18 " the comment leader when hitting <CR> or using "o". | |
19 setlocal fo-=t fo+=croql | |
20 | |
21 setlocal com=:-- | |
1621 | 22 setlocal cms=--%s |
7 | 23 setlocal suffixesadd=.lua |
24 | |
25 | |
26 " The following lines enable the macros/matchit.vim plugin for | |
27 " extended matching with the % key. | |
28 if exists("loaded_matchit") | |
29 | |
30 let b:match_ignorecase = 0 | |
31 let b:match_words = | |
32 \ '\<\%(do\|function\|if\)\>:' . | |
33 \ '\<\%(return\|else\|elseif\)\>:' . | |
34 \ '\<end\>,' . | |
35 \ '\<repeat\>:\<until\>' | |
36 | |
37 endif " exists("loaded_matchit") | |
3224 | 38 |
39 let &cpo = s:cpo_save | |
40 unlet s:cpo_save | |
3410
94601b379f38
Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents:
3224
diff
changeset
|
41 |
94601b379f38
Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents:
3224
diff
changeset
|
42 let b:undo_ftplugin = "setlocal fo< com< cms< suffixesadd<" |