Mercurial > vim
annotate runtime/ftplugin/yaml.vim @ 18568:26a04a556982 v8.1.2278
patch 8.1.2278: using "cd" with "exe" may fail
Commit: https://github.com/vim/vim/commit/3503d7c94a6c8c2a5ca1665d648d0cb81afcc863
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 9 20:10:17 2019 +0100
patch 8.1.2278: using "cd" with "exe" may fail
Problem: Using "cd" with "exe" may fail.
Solution: Use chdir() instead.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 09 Nov 2019 20:15:04 +0100 |
parents | 1218c5353e2b |
children | 847a300aa244 |
rev | line source |
---|---|
375 | 1 " Vim filetype plugin file |
11062 | 2 " Language: YAML (YAML Ain't Markup Language) |
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se> | |
4 " Latest Revision: 2008-07-09 | |
375 | 5 |
6 if exists("b:did_ftplugin") | |
7 finish | |
8 endif | |
9 let b:did_ftplugin = 1 | |
10 | |
1698 | 11 let s:cpo_save = &cpo |
12 set cpo&vim | |
13 | |
389 | 14 let b:undo_ftplugin = "setl com< cms< et< fo<" |
375 | 15 |
16 setlocal comments=:# commentstring=#\ %s expandtab | |
389 | 17 setlocal formatoptions-=t formatoptions+=croql |
1698 | 18 |
19 let &cpo = s:cpo_save | |
20 unlet s:cpo_save |