Mercurial > vim
annotate runtime/ftplugin/haml.vim @ 16397:7a942d92980d v8.1.1203
patch 8.1.1203: some autocmd tests are old style
commit https://github.com/vim/vim/commit/69ea587289b03e23a9fb96adffd6e8173cbc5896
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Apr 25 20:29:00 2019 +0200
patch 8.1.1203: some autocmd tests are old style
Problem: Some autocmd tests are old style.
Solution: Turn the tests into new style. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/4295)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 25 Apr 2019 20:30:05 +0200 |
parents | 43efa4f5a8ea |
children | 5c40013d45ee |
rev | line source |
---|---|
1668 | 1 " Vim filetype plugin |
4681
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3410
diff
changeset
|
2 " Language: Haml |
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3410
diff
changeset
|
3 " Maintainer: Tim Pope <vimNOSPAM@tpope.org> |
10048
43efa4f5a8ea
commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents:
4681
diff
changeset
|
4 " Last Change: 2016 Aug 29 |
1668 | 5 |
6 " Only do this when not done yet for this buffer | |
7 if exists("b:did_ftplugin") | |
8 finish | |
9 endif | |
10 | |
11 let s:save_cpo = &cpo | |
12 set cpo-=C | |
13 | |
14 " Define some defaults in case the included ftplugins don't set them. | |
15 let s:undo_ftplugin = "" | |
16 let s:browsefilter = "All Files (*.*)\t*.*\n" | |
17 let s:match_words = "" | |
18 | |
19 runtime! ftplugin/html.vim ftplugin/html_*.vim ftplugin/html/*.vim | |
20 unlet! b:did_ftplugin | |
4681
2eb30f341e8d
Updated runtime files and translations.
Bram Moolenaar <bram@vim.org>
parents:
3410
diff
changeset
|
21 set matchpairs-=<:> |
1668 | 22 |
23 " Override our defaults if these were set by an included ftplugin. | |
24 if exists("b:undo_ftplugin") | |
25 let s:undo_ftplugin = b:undo_ftplugin | |
26 unlet b:undo_ftplugin | |
27 endif | |
28 if exists("b:browsefilter") | |
29 let s:browsefilter = b:browsefilter | |
30 unlet b:browsefilter | |
31 endif | |
32 if exists("b:match_words") | |
33 let s:match_words = b:match_words | |
34 unlet b:match_words | |
35 endif | |
36 | |
37 runtime! ftplugin/ruby.vim ftplugin/ruby_*.vim ftplugin/ruby/*.vim | |
38 let b:did_ftplugin = 1 | |
39 | |
40 " Combine the new set of values with those previously included. | |
41 if exists("b:undo_ftplugin") | |
42 let s:undo_ftplugin = b:undo_ftplugin . " | " . s:undo_ftplugin | |
43 endif | |
44 if exists ("b:browsefilter") | |
45 let s:browsefilter = substitute(b:browsefilter,'\cAll Files (\*\.\*)\t\*\.\*\n','','') . s:browsefilter | |
46 endif | |
47 if exists("b:match_words") | |
48 let s:match_words = b:match_words . ',' . s:match_words | |
49 endif | |
50 | |
51 " Change the browse dialog on Win32 to show mainly Haml-related files | |
52 if has("gui_win32") | |
53 let b:browsefilter="Haml Files (*.haml)\t*.haml\nSass Files (*.sass)\t*.sass\n" . s:browsefilter | |
54 endif | |
55 | |
56 " Load the combined list of match_words for matchit.vim | |
57 if exists("loaded_matchit") | |
58 let b:match_words = s:match_words | |
59 endif | |
60 | |
2202 | 61 setlocal comments= commentstring=-#\ %s |
1668 | 62 |
63 let b:undo_ftplugin = "setl cms< com< " | |
64 \ " | unlet! b:browsefilter b:match_words | " . s:undo_ftplugin | |
65 | |
66 let &cpo = s:save_cpo | |
3410
94601b379f38
Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents:
2202
diff
changeset
|
67 unlet s:save_cpo |
1668 | 68 |
69 " vim:set sw=2: |