1" Vim filetype plugin file 2" Language: Falcon 3" Author: Steven Oliver <[email protected]> 4" Copyright: Copyright (c) 2009-2013 Steven Oliver 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 9if (exists("b:did_ftplugin")) 10 finish 11endif 12let b:did_ftplugin = 1 13 14let s:cpo_save = &cpo 15set cpo&vim 16 17setlocal softtabstop=4 shiftwidth=4 fileencoding=utf-8 18setlocal suffixesadd=.fal,.ftd 19 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 33setlocal 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") 37 let b:browsefilter = "Falcon Source Files (*.fal *.ftd)\t*.fal;*.ftd\n" . 38 \ "All Files (*.*)\t*.*\n" 39endif 40 41let b:undo_ftplugin = "setlocal tabstop< shiftwidth< expandtab< fileencoding<" 42 \ . " suffixesadd< comments<" 43 \ . "| unlet! b:browsefiler" 44 45let &cpo = s:cpo_save 46unlet s:cpo_save 47 48" vim: set sw=4 sts=4 et tw=80 : 49