codekingpro/portable-devtools
114k
1" Vim filetype plugin file2" Language: Falcon3" Author: Steven Oliver <oliver.steven@gmail.com>4" Copyright: Copyright (c) 2009-2013 Steven Oliver5" License: You may redistribute this under the same terms as Vim itself6" Last Update: 2020 Oct 107" 2024 Jan 14 by Vim Project (browsefilter)8" --------------------------------------------------------------------------9 10" Only do this when not done yet for this buffer11if (exists("b:did_ftplugin"))12 finish13endif14let b:did_ftplugin = 115 16let s:cpo_save = &cpo17set cpo&vim18 19setlocal softtabstop=4 shiftwidth=420setlocal suffixesadd=.fal,.ftd21 22" Matchit support23if exists("loaded_matchit") && !exists("b:match_words")24 let b:match_ignorecase = 025 26 let b:match_words =27 \ '\<\%(if\|case\|while\|until\|for\|do\|class\)\>=\@!' .28 \ ':' .29 \ '\<\%(else\|elsif\|when\)\>' .30 \ ':' .31 \ '\<end\>' .32 \ ',{:},\[:\],(:)'33endif34 35setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://36 37" Windows allows you to filter the open file dialog38if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")39 let b:browsefilter = "Falcon Source Files (*.fal, *.ftd)\t*.fal;*.ftd\n"40 if has("win32")41 let b:browsefilter ..= "All Files (*.*)\t*\n"42 else43 let b:browsefilter ..= "All Files (*)\t*\n"44 endif45endif46 47let b:undo_ftplugin = "setlocal tabstop< shiftwidth< expandtab< fileencoding<"48 \ . " suffixesadd< comments<"49 \ . "| unlet! b:browsefilter"50 51let &cpo = s:cpo_save52unlet s:cpo_save53 54" vim: set sw=4 sts=4 et tw=80 :55 