Mercurial > vim
comparison runtime/autoload/decada.vim @ 25773:11b656e74444
Update runtime files
Commit: https://github.com/vim/vim/commit/6c391a74fe90190796ca0b0c010112948a6e75d7
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 9 21:55:11 2021 +0200
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 09 Sep 2021 22:00:10 +0200 |
parents | 3a1ed539ae2a |
children |
comparison
equal
deleted
inserted
replaced
25772:55753c17b73d | 25773:11b656e74444 |
---|---|
21 finish | 21 finish |
22 endif | 22 endif |
23 | 23 |
24 function decada#Unit_Name () dict " {{{1 | 24 function decada#Unit_Name () dict " {{{1 |
25 " Convert filename into acs unit: | 25 " Convert filename into acs unit: |
26 " 1: remove the file extenstion. | 26 " 1: remove the file extension. |
27 " 2: replace all double '_' or '-' with an dot (which denotes a separate) | 27 " 2: replace all double '_' or '-' with an dot (which denotes a separate) |
28 " 3: remove a trailing '_' (which denotes a specification) | 28 " 3: remove a trailing '_' (which denotes a specification) |
29 return substitute (substitute (expand ("%:t:r"), '__\|-', ".", "g"), '_$', "", '') | 29 return substitute (substitute (expand ("%:t:r"), '__\|-', ".", "g"), '_$', "", '') |
30 endfunction decada#Unit_Name " }}}1 | 30 endfunction decada#Unit_Name " }}}1 |
31 | 31 |