Mercurial > vim
comparison runtime/ftplugin/yaml.vim @ 19646:847a300aa244
Update runtime files
Commit: https://github.com/vim/vim/commit/b17893aa940dc7d45421f875f5d90855880aad27
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 14 08:19:51 2020 +0100
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 14 Mar 2020 08:30:08 +0100 |
parents | 1218c5353e2b |
children | 9fdacba9c2ec |
comparison
equal
deleted
inserted
replaced
19645:c4e27eead327 | 19646:847a300aa244 |
---|---|
1 " Vim filetype plugin file | 1 " Vim filetype plugin file |
2 " Language: YAML (YAML Ain't Markup Language) | 2 " Language: YAML (YAML Ain't Markup Language) |
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se> | 3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se> (inactive) |
4 " Latest Revision: 2008-07-09 | 4 " Last Change: 2020 Mar 02 |
5 | 5 |
6 if exists("b:did_ftplugin") | 6 if exists("b:did_ftplugin") |
7 finish | 7 finish |
8 endif | 8 endif |
9 let b:did_ftplugin = 1 | 9 let b:did_ftplugin = 1 |
14 let b:undo_ftplugin = "setl com< cms< et< fo<" | 14 let b:undo_ftplugin = "setl com< cms< et< fo<" |
15 | 15 |
16 setlocal comments=:# commentstring=#\ %s expandtab | 16 setlocal comments=:# commentstring=#\ %s expandtab |
17 setlocal formatoptions-=t formatoptions+=croql | 17 setlocal formatoptions-=t formatoptions+=croql |
18 | 18 |
19 if !exists("g:yaml_recommended_style") || g:yaml_recommended_style != 0 | |
20 let b:undo_ftplugin ..= " sw< sts<" | |
21 setlocal shiftwidth=2 softtabstop=2 | |
22 endif | |
23 | |
19 let &cpo = s:cpo_save | 24 let &cpo = s:cpo_save |
20 unlet s:cpo_save | 25 unlet s:cpo_save |