annotate runtime/ftplugin/framescript.vim @ 6845:ac13f3533571 v7.4.743

patch 7.4.743 Problem: "p" in Visual mode causes an unexpected line split. Solution: Advance the cursor first. (Yukihiro Nakadaira)
author Bram Moolenaar <bram@vim.org>
date Fri, 19 Jun 2015 15:17:55 +0200
parents f4f8014d516e
children 1218c5353e2b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1698
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
1 " Vim ftplugin file
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
2 " Language: FrameScript
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
3 " Maintainer: Nikolai Weibull <now@bitwi.se>
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
4 " Latest Revision: 2008-07-19
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
5
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
6 let s:cpo_save = &cpo
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
7 set cpo&vim
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
8
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
9 if exists("b:did_ftplugin")
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
10 finish
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
11 endif
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
12 let b:did_ftplugin = 1
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
13
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
14 let b:undo_ftplugin = "setl com< cms< fo< inc< | unlet! b:matchwords"
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
15
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
16 setlocal comments=s1:/*,mb:*,ex:*/,:// commentstring=/*\ %s\ */
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
17 setlocal formatoptions-=t formatoptions+=croql
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
18 setlocal include=^\\s*<#Include
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
19
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
20 if exists("loaded_matchit")
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
21 let s:not_end = '\c\%(\<End\)\@<!'
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
22 let b:match_words =
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
23 \ s:not_end . '\<If\>:\c\<ElseIf\>:\c\<Else\>:\c\<EndIf\>,' .
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
24 \ s:not_end . '\<Loop\>:\c\<EndLoop\>' .
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
25 \ s:not_end . '\<Sub\>:\c\<EndSub\>'
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
26 unlet s:not_end
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
27 endif
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
28
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
29 let &cpo = s:cpo_save
f4f8014d516e updated for version 7.2c-000
vimboss
parents:
diff changeset
30 unlet s:cpo_save