blob: 4fc135b4a179db13fe12f853b752d3ec6267c911 [file] [log] [blame]
Bram Moolenaar4a748032010-09-30 21:47:56 +02001" Vim filetype plugin file
2" Language: Falcon
3" Author: Steven Oliver <oliver.steven@gmail.com>
Bram Moolenaarec7944a2013-06-12 21:29:15 +02004" Copyright: Copyright (c) 2009-2013 Steven Oliver
Bram Moolenaar4a748032010-09-30 21:47:56 +02005" License: You may redistribute this under the same terms as Vim itself
6" --------------------------------------------------------------------------
Bram Moolenaar4a748032010-09-30 21:47:56 +02007
8" Only do this when not done yet for this buffer
9if (exists("b:did_ftplugin"))
10 finish
11endif
12let b:did_ftplugin = 1
13
14let s:cpo_save = &cpo
15set cpo&vim
16
Bram Moolenaarec7944a2013-06-12 21:29:15 +020017setlocal softtabstop=4 shiftwidth=4 fileencoding=utf-8
Bram Moolenaarf1568ec2011-12-14 21:17:39 +010018setlocal suffixesadd=.fal,.ftd
Bram Moolenaar4a748032010-09-30 21:47:56 +020019
20" Matchit support
21if 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 \ ',{:},\[:\],(:)'
31endif
32
Bram Moolenaar4a748032010-09-30 21:47:56 +020033setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
34
35" Windows allows you to filter the open file dialog
36if has("gui_win32") && !exists("b:browsefilter")
Bram Moolenaarf1568ec2011-12-14 21:17:39 +010037 let b:browsefilter = "Falcon Source Files (*.fal *.ftd)\t*.fal;*.ftd\n" .
Bram Moolenaar4a748032010-09-30 21:47:56 +020038 \ "All Files (*.*)\t*.*\n"
39endif
40
Bram Moolenaar61d35bd2012-03-28 20:51:51 +020041let b:undo_ftplugin = "setlocal tabstop< shiftwidth< expandtab< fileencoding<"
42 \ . " suffixesadd< comments<"
43 \ . "| unlet! b:browsefiler"
44
Bram Moolenaarf1568ec2011-12-14 21:17:39 +010045let &cpo = s:cpo_save
46unlet s:cpo_save
47
Bram Moolenaar4a748032010-09-30 21:47:56 +020048" vim: set sw=4 sts=4 et tw=80 :