neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

falcon.vim (1514B)


      1 " Vim filetype plugin file
      2 " Language:     Falcon
      3 " Author:       Steven Oliver <oliver.steven@gmail.com>
      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 "               2024 Jan 14 by Vim Project (browsefilter)
      8 " --------------------------------------------------------------------------
      9 
     10 " Only do this when not done yet for this buffer
     11 if (exists("b:did_ftplugin"))
     12  finish
     13 endif
     14 let b:did_ftplugin = 1
     15 
     16 let s:cpo_save = &cpo
     17 set cpo&vim
     18 
     19 setlocal softtabstop=4 shiftwidth=4
     20 setlocal suffixesadd=.fal,.ftd
     21 
     22 " Matchit support
     23 if exists("loaded_matchit") && !exists("b:match_words")
     24  let b:match_ignorecase = 0
     25 
     26  let b:match_words =
     27 \ '\<\%(if\|case\|while\|until\|for\|do\|class\)\>=\@!' .
     28 \ ':' .
     29 \ '\<\%(else\|elsif\|when\)\>' .
     30 \ ':' .
     31 \ '\<end\>' .
     32 \ ',{:},\[:\],(:)'
     33 endif
     34 
     35 setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
     36 
     37 " Windows allows you to filter the open file dialog
     38 if (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  else
     43    let b:browsefilter ..= "All Files (*)\t*\n"
     44  endif
     45 endif
     46 
     47 let b:undo_ftplugin = "setlocal tabstop< shiftwidth< expandtab< fileencoding<"
     48 \ . " suffixesadd< comments<"
     49 \ . "| unlet! b:browsefilter"
     50 
     51 let &cpo = s:cpo_save
     52 unlet s:cpo_save
     53 
     54 " vim: set sw=4 sts=4 et tw=80 :