updated for version 7.0072

This commit is contained in:
Bram Moolenaar
2005-05-18 22:10:28 +00:00
parent d8a4e563d0
commit d9d305836e
7 changed files with 57 additions and 36 deletions

View File

@ -1,4 +1,4 @@
*editing.txt* For Vim version 7.0aa. Last change: 2005 Apr 04
*editing.txt* For Vim version 7.0aa. Last change: 2005 Apr 27
VIM REFERENCE MANUAL by Bram Moolenaar
@ -54,12 +54,12 @@ and then hit CTRL-^. {Vi: only one alternate file name is remembered}
CTRL-G or *CTRL-G* *:f* *:fi* *:file*
:f[ile] Prints the current file name (as typed), the
cursor position (unless the 'ruler' option is set),
and the file status (readonly, modified, read errors,
new file). See the 'shortmess' option about how to
make this message shorter. {Vi does not include
column number}
:f[ile] Prints the current file name (as typed, unless ":cd"
was used), the cursor position (unless the 'ruler'
option is set), and the file status (readonly,
modified, read errors, new file). See the 'shortmess'
option about how to make this message shorter.
{Vi does not include column number}
:f[ile]! like |:file|, but don't truncate the name even when
'shortmess' indicates this.

View File

@ -1,9 +1,10 @@
" Vim syntax file
" Language: crontab 2.3.3
" Language: crontab
" Maintainer: John Hoelzel johnh51@users.sourceforge.net
" Last change: Mon Jun 9 2003
" Filenames: /tmp/crontab.* used by "crontab -e"
" URL: http://johnh51.get.to/vim/syntax/crontab.vim
" Maintainer: David Necas (Yeti) <yeti@physics.muni.cz>
" Last Change: 2005-04-26
" Filenames: /tmp/crontab.* used by "crontab -e"
" URL: http://trific.ath.cx/Ftp/vim/syntax/crontab.vim
"
" crontab line format:
" Minutes Hours Days Months Days_of_Week Commands # comments
@ -16,20 +17,24 @@ elseif exists("b:current_syntax")
finish
endif
syntax match crontabMin "\_^[0-9\-\/\,\.]\{}\>\|\*" nextgroup=crontabHr skipwhite
syntax match crontabHr "\<[0-9\-\/\,\.]\{}\>\|\*" nextgroup=crontabDay skipwhite contained
syntax match crontabDay "\<[0-9\-\/\,\.]\{}\>\|\*" nextgroup=crontabMnth skipwhite contained
syntax match crontabMin "^\s*[-0-9/,.*]\+" nextgroup=crontabHr skipwhite
syntax match crontabHr "\s[-0-9/,.*]\+" nextgroup=crontabDay skipwhite contained
syntax match crontabDay "\s[-0-9/,.*]\+" nextgroup=crontabMnth skipwhite contained
syntax match crontabMnth "\<[a-z0-9\-\/\,\.]\{}\>\|\*" nextgroup=crontabDow skipwhite contained
syntax match crontabMnth "\s[-a-z0-9/,.*]\+" nextgroup=crontabDow skipwhite contained
syntax keyword crontabMnth12 contained jan feb mar apr may jun jul aug sep oct nov dec
syntax match crontabDow "\<[a-z0-9\-\/\,\.]\{}\>\|\*" nextgroup=crontabCmd skipwhite contained
syntax match crontabDow "\s[-a-z0-9/,.*]\+" nextgroup=crontabCmd skipwhite contained
syntax keyword crontabDow7 contained sun mon tue wed thu fri sat
" syntax region crontabCmd start="\<[a-z0-9\/\(]" end="$" nextgroup=crontabCmnt skipwhite contained contains=crontabCmnt keepend
syntax region crontabCmd start="\S" end="$" nextgroup=crontabCmnt skipwhite contained contains=crontabCmnt keepend
syntax match crontabCmnt /#.*/
syntax region crontabCmd start="\S" end="$" nextgroup=crontabCmnt skipwhite contained keepend
syntax match crontabCmnt "^\s*#.*"
syntax match crontabNick "^\s*@\(reboot\|yearly\|annually\|monthly\|weekly\|daily\|midnight\|hourly\)\>" nextgroup=crontabCmd skipwhite
syntax match crontabVar "^\s*\k\w*\s*="me=e-1
" Define the default highlighting.
" For version 5.7 and earlier: only when not done already
@ -56,6 +61,9 @@ if version >= 508 || !exists("did_crontab_syn_inits")
HiLink crontabDowS PreProc
HiLink crontabDowN PreProc
HiLink crontabNick Special
HiLink crontabVar Identifier
" comment out next line for to suppress unix commands coloring.
HiLink crontabCmd Type