Mercurial > vim
comparison runtime/indent/rmd.vim @ 16610:1eaf34420bb3
Update runtime files
commit https://github.com/vim/vim/commit/a6c27c47ddf081859659d7de1caec675147e466b
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu May 9 19:16:22 2019 +0200
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 09 May 2019 19:30:06 +0200 |
parents | 0ecb909e3249 |
children | 5bda4653aced |
comparison
equal
deleted
inserted
replaced
16609:175385d2d3d9 | 16610:1eaf34420bb3 |
---|---|
37 endfunction | 37 endfunction |
38 | 38 |
39 function s:GetYamlIndent() | 39 function s:GetYamlIndent() |
40 let pline = getline(v:lnum - 1) | 40 let pline = getline(v:lnum - 1) |
41 if pline =~ ':\s*$' | 41 if pline =~ ':\s*$' |
42 return indent(v:lnum) + &sw | 42 return indent(v:lnum) + shiftwidth() |
43 elseif pline =~ '^\s*- ' | 43 elseif pline =~ '^\s*- ' |
44 return indent(v:lnum) + 2 | 44 return indent(v:lnum) + 2 |
45 endif | 45 endif |
46 return indent(prevnonblank(v:lnum - 1)) | 46 return indent(prevnonblank(v:lnum - 1)) |
47 endfunction | 47 endfunction |