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" Last Update: 2020 Oct 10 7" -------------------------------------------------------------------------- 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 softtabstop=4 shiftwidth=4 19setlocal suffixesadd=.fal,.ftd 20 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 34setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:// 35 36" Windows allows you to filter the open file dialog 37if has("gui_win32") && !exists("b:browsefilter") 38 let b:browsefilter = "Falcon Source Files (*.fal *.ftd)\t*.fal;*.ftd\n" . 39 \ "All Files (*.*)\t*.*\n" 40endif 41 42let b:undo_ftplugin = "setlocal tabstop< shiftwidth< expandtab< fileencoding<" 43 \ . " suffixesadd< comments<" 44 \ . "| unlet! b:browsefiler" 45 46let &cpo = s:cpo_save 47unlet s:cpo_save 48 49" vim: set sw=4 sts=4 et tw=80 : 50