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