2596
|
1 " Vim filetype plugin file
|
|
2 " Language: Falcon
|
|
3 " Author: Steven Oliver <oliver.steven@gmail.com>
|
4869
|
4 " Copyright: Copyright (c) 2009-2013 Steven Oliver
|
2596
|
5 " License: You may redistribute this under the same terms as Vim itself
|
22565
|
6 " Last Update: 2020 Oct 10
|
2596
|
7 " --------------------------------------------------------------------------
|
|
8
|
|
9 " Only do this when not done yet for this buffer
|
|
10 if (exists("b:did_ftplugin"))
|
|
11 finish
|
|
12 endif
|
|
13 let b:did_ftplugin = 1
|
|
14
|
|
15 let s:cpo_save = &cpo
|
|
16 set cpo&vim
|
|
17
|
22565
|
18 setlocal softtabstop=4 shiftwidth=4
|
3224
|
19 setlocal suffixesadd=.fal,.ftd
|
2596
|
20
|
|
21 " Matchit support
|
|
22 if exists("loaded_matchit") && !exists("b:match_words")
|
|
23 let b:match_ignorecase = 0
|
|
24
|
|
25 let b:match_words =
|
|
26 \ '\<\%(if\|case\|while\|until\|for\|do\|class\)\>=\@!' .
|
|
27 \ ':' .
|
|
28 \ '\<\%(else\|elsif\|when\)\>' .
|
|
29 \ ':' .
|
|
30 \ '\<end\>' .
|
|
31 \ ',{:},\[:\],(:)'
|
|
32 endif
|
|
33
|
|
34 setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
|
|
35
|
|
36 " Windows allows you to filter the open file dialog
|
|
37 if has("gui_win32") && !exists("b:browsefilter")
|
3224
|
38 let b:browsefilter = "Falcon Source Files (*.fal *.ftd)\t*.fal;*.ftd\n" .
|
2596
|
39 \ "All Files (*.*)\t*.*\n"
|
|
40 endif
|
|
41
|
3445
|
42 let b:undo_ftplugin = "setlocal tabstop< shiftwidth< expandtab< fileencoding<"
|
|
43 \ . " suffixesadd< comments<"
|
|
44 \ . "| unlet! b:browsefiler"
|
|
45
|
3224
|
46 let &cpo = s:cpo_save
|
|
47 unlet s:cpo_save
|
|
48
|
2596
|
49 " vim: set sw=4 sts=4 et tw=80 :
|