Mercurial > vim
annotate runtime/ftplugin/falcon.vim @ 35172:c98f002b1fe4 default tip
runtime(doc): fix typo in usr_52.txt
Commit: https://github.com/vim/vim/commit/b7258738f80f26be302a84a99f968b3bdc2f29bb
Author: Christian Brabandt <cb@256bit.org>
Date: Sun May 12 19:04:47 2024 +0200
runtime(doc): fix typo in usr_52.txt
fixes: https://github.com/vim/vim/issues/14758
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 12 May 2024 19:15:08 +0200 |
parents | 8ae680be2a51 |
children |
rev | line source |
---|---|
2596 | 1 " Vim filetype plugin file |
2 " Language: Falcon | |
3 " Author: Steven Oliver <oliver.steven@gmail.com> | |
4869 | 4 " Copyright: Copyright (c) 2009-2013 Steven Oliver |
2596 | 5 " License: You may redistribute this under the same terms as Vim itself |
22565 | 6 " Last Update: 2020 Oct 10 |
34134
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
22565
diff
changeset
|
7 " 2024 Jan 14 by Vim Project (browsefilter) |
2596 | 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 | |
22565 | 19 setlocal softtabstop=4 shiftwidth=4 |
3224 | 20 setlocal suffixesadd=.fal,.ftd |
2596 | 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 | |
34134
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
22565
diff
changeset
|
38 if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter") |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
22565
diff
changeset
|
39 let b:browsefilter = "Falcon Source Files (*.fal, *.ftd)\t*.fal;*.ftd\n" |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
22565
diff
changeset
|
40 if has("win32") |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
22565
diff
changeset
|
41 let b:browsefilter ..= "All Files (*.*)\t*\n" |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
22565
diff
changeset
|
42 else |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
22565
diff
changeset
|
43 let b:browsefilter ..= "All Files (*)\t*\n" |
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
22565
diff
changeset
|
44 endif |
2596 | 45 endif |
46 | |
3445 | 47 let b:undo_ftplugin = "setlocal tabstop< shiftwidth< expandtab< fileencoding<" |
48 \ . " suffixesadd< comments<" | |
34134
8ae680be2a51
runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents:
22565
diff
changeset
|
49 \ . "| unlet! b:browsefilter" |
3445 | 50 |
3224 | 51 let &cpo = s:cpo_save |
52 unlet s:cpo_save | |
53 | |
2596 | 54 " vim: set sw=4 sts=4 et tw=80 : |