Mercurial > vim
comparison runtime/indent/sh.vim @ 7924:00d64eb49ce1
commit https://github.com/vim/vim/commit/681baaf4a4c81418693dcafb81421a8614832e91
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Feb 4 20:57:07 2016 +0100
Update runtime files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 04 Feb 2016 21:00:05 +0100 |
parents | aea5ebf352c4 |
children | f16bfe02cef1 |
comparison
equal
deleted
inserted
replaced
7923:dacd57ae37f5 | 7924:00d64eb49ce1 |
---|---|
1 " Vim indent file | 1 " Vim indent file |
2 " Language: Shell Script | 2 " Language: Shell Script |
3 " Maintainer: Christian Brabandt <cb@256bit.org> | 3 " Maintainer: Christian Brabandt <cb@256bit.org> |
4 " Previous Maintainer: Peter Aronoff <telemachus@arpinum.org> | 4 " Previous Maintainer: Peter Aronoff <telemachus@arpinum.org> |
5 " Original Author: Nikolai Weibull <now@bitwi.se> | 5 " Original Author: Nikolai Weibull <now@bitwi.se> |
6 " Latest Revision: 2015-12-15 | 6 " Latest Revision: 2016-01-15 |
7 " License: Vim (see :h license) | 7 " License: Vim (see :h license) |
8 " Repository: https://github.com/chrisbra/vim-sh-indent | 8 " Repository: https://github.com/chrisbra/vim-sh-indent |
9 | 9 |
10 if exists("b:did_indent") | 10 if exists("b:did_indent") |
11 finish | 11 finish |
26 | 26 |
27 let s:cpo_save = &cpo | 27 let s:cpo_save = &cpo |
28 set cpo&vim | 28 set cpo&vim |
29 | 29 |
30 function s:buffer_shiftwidth() | 30 function s:buffer_shiftwidth() |
31 return &shiftwidth | 31 return shiftwidth() |
32 endfunction | 32 endfunction |
33 | 33 |
34 let s:sh_indent_defaults = { | 34 let s:sh_indent_defaults = { |
35 \ 'default': function('s:buffer_shiftwidth'), | 35 \ 'default': function('s:buffer_shiftwidth'), |
36 \ 'continuation-line': function('s:buffer_shiftwidth'), | 36 \ 'continuation-line': function('s:buffer_shiftwidth'), |