Mercurial > vim
comparison runtime/ftplugin/changelog.vim @ 3830:04592728474a
Updated runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 21 Sep 2012 14:54:30 +0200 |
parents | 3c7da93eb7f9 |
children | 2f856c7c1d43 |
comparison
equal
deleted
inserted
replaced
3829:25f9e59741f9 | 3830:04592728474a |
---|---|
1 " Vim filetype plugin file | 1 " Vim filetype plugin file |
2 " Language: generic Changelog file | 2 " Language: generic Changelog file |
3 " Maintainer: Nikolai Weibull <now@bitwi.se> | 3 " Maintainer: Nikolai Weibull <now@bitwi.se> |
4 " Latest Revision: 2011-05-02 | 4 " Latest Revision: 2012-08-23 |
5 " Variables: | 5 " Variables: |
6 " g:changelog_timeformat (deprecated: use g:changelog_dateformat instead) - | 6 " g:changelog_timeformat (deprecated: use g:changelog_dateformat instead) - |
7 " description: the timeformat used in ChangeLog entries. | 7 " description: the timeformat used in ChangeLog entries. |
8 " default: "%Y-%m-%d". | 8 " default: "%Y-%m-%d". |
9 " g:changelog_dateformat - | 9 " g:changelog_dateformat - |
104 endtry | 104 endtry |
105 endfunction | 105 endfunction |
106 | 106 |
107 function! s:passwd_field(line, field) | 107 function! s:passwd_field(line, field) |
108 let fields = split(a:line, ':', 1) | 108 let fields = split(a:line, ':', 1) |
109 if len(fields) < field | 109 if len(fields) < a:field |
110 return "" | 110 return "" |
111 endif | 111 endif |
112 return fields[field - 1] | 112 return fields[a:field - 1] |
113 endfunction | 113 endfunction |
114 | 114 |
115 function! s:capitalize(word) | 115 function! s:capitalize(word) |
116 return toupper(a:word[0]) . strpart(a:word, 1) | 116 return toupper(a:word[0]) . strpart(a:word, 1) |
117 endfunction | 117 endfunction |