blob: 776db8013afe00b0c8883cfc7180537c3c054a3e [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 Moolenaarf1568ec2011-12-14 21:17:39 +01004" Copyright: Copyright (c) 2009, 2010, 2011 Steven Oliver
Bram Moolenaar4a748032010-09-30 21:47:56 +02005" License: You may redistribute this under the same terms as Vim itself
6" --------------------------------------------------------------------------
7" GetLatestVimScripts: 2762 1 :AutoInstall: falcon.vim
8
9" Only do this when not done yet for this buffer
10if (exists("b:did_ftplugin"))
11 finish
12endif
13let b:did_ftplugin = 1
14
15let s:cpo_save = &cpo
16set cpo&vim
17
18setlocal tabstop=4 shiftwidth=4 expandtab fileencoding=utf-8
Bram Moolenaarf1568ec2011-12-14 21:17:39 +010019setlocal suffixesadd=.fal,.ftd
Bram Moolenaar4a748032010-09-30 21:47:56 +020020
21" Matchit support
22if 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 \ ',{:},\[:\],(:)'
32endif
33
34" Set comments to include dashed lines
35setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
36
37" Windows allows you to filter the open file dialog
38if has("gui_win32") && !exists("b:browsefilter")
Bram Moolenaarf1568ec2011-12-14 21:17:39 +010039 let b:browsefilter = "Falcon Source Files (*.fal *.ftd)\t*.fal;*.ftd\n" .
Bram Moolenaar4a748032010-09-30 21:47:56 +020040 \ "All Files (*.*)\t*.*\n"
41endif
42
Bram Moolenaarf1568ec2011-12-14 21:17:39 +010043let &cpo = s:cpo_save
44unlet s:cpo_save
45
Bram Moolenaar4a748032010-09-30 21:47:56 +020046" vim: set sw=4 sts=4 et tw=80 :