?? muttrc.vim
字號:
" Vim syntax file" Language: Mutt setup files" Maintainer: Preben "Peppe" Guldberg (c928400@student.dtu.dk)" Last Change: Tue Jul 28 17:41:25 1998" This file covers mutt version 0.74 and up (non developer)" It has been updated for version 0.93i" Over the time some features have vanished but are still included" To get a syntax file for your specific version, see" http://www.student.dtu.dk/~c928400/vim" For version 5.x: Clear all syntax items" For version 6.x: Quit when a syntax file was already loadedif version < 600 syntax clearelseif exists("b:current_syntax") finishendif" Set the keyword charactersif version < 600 set isk=@,48-57,_,-else setlocal isk=@,48-57,_,-endifsyn match muttrcComment "^#.*$"syn match muttrcComment "[^\\]#.*$"lc=1" Escape sequences (back-tick and pipe goes here too)syn match muttrcEscape +\\[#tnr"'Cc]+syn match muttrcEscape +[`|]+" The variables takes the following argumentssyn match muttrcString "=\s*[^ #"']\+"lc=1 contains=muttrcEscapesyn region muttrcString start=+"+ms=e skip=+\\"+ end=+"+ contains=muttrcEscape,muttrcSet,muttrcCommandsyn region muttrcString start=+'+ms=e skip=+\\'+ end=+'+ contains=muttrcEscape,muttrcSet,muttrcCommandsyn match muttrcSpecial +\(['"]\)!\1+" Numbers and Quadoptions may be surrounded by " or 'syn match muttrcNumber /=\s*\d\+/lc=1syn match muttrcNumber /"=\s*\d\+"/lc=2syn match muttrcNumber /'=\s*\d\+'/lc=2syn match muttrcQuadopt +=\s*\(ask-\)\=\(yes\|no\)+lc=1syn match muttrcQuadopt +"=\s*\(ask-\)\=\(yes\|no\)"+lc=2syn match muttrcQuadopt +'=\s*\(ask-\)\=\(yes\|no\)'+lc=2" Now catch some email addresses and headers (purified version from mail.vim)syn match muttrcEmail "[a-zA-Z0-9._-]\+@[a-zA-Z0-9./-]\+"syn match muttrcHeader "\<\(From\|To\|Cc\|Bcc\|Reply-To\|Subject\)\>:\="syn match muttrcHeader "\<\(Return-Path\|Received\|Date\|Replied\|Attach\)\>:\="syn match muttrcKeySpecial contained +\(\\[Cc'"]\|\^\|\\[01]\d\{2}\)+syn match muttrcKey contained "\S\+" contains=muttrcKeySpecialsyn region muttrcKey contained start=+"+ skip=+\\"+ end=+"+ contains=muttrcKeySpecialsyn region muttrcKey contained start=+'+ skip=+\\'+ end=+'+ contains=muttrcKeySpecialsyn match muttrcKeyName contained "\<f\(\d\|10\)\>"syn match muttrcKeyName contained "\\[trne]"syn match muttrcKeyName contained "\(<BackSpace>\|<Delete>\|<Down>\|<End>\|<Enter>\)"syn match muttrcKeyName contained "\(<Home>\|<Insert>\|<Left>\|<PageDown>\|<PageUp>\)"syn match muttrcKeyName contained "\(<Return>\|<Right>\|<Up>\)"syn keyword muttrcVarBool contained allow_8bit arrow_cursor ascii_chars askbcc askcc auto_tagsyn keyword muttrcVarBool contained autoedit beep beep_new check_new confirmappendsyn keyword muttrcVarBool contained confirmcreate edit_headers fast_reply fcc_attachsyn keyword muttrcVarBool contained followup_to force_name forward_decode forward_quote hdrssyn keyword muttrcVarBool contained header help ignore_list_reply_to mark_old markerssyn keyword muttrcVarBool contained menu_scroll meta_key metoo mime_forward_decode pager_stopsyn keyword muttrcVarBool contained pgp_autoencrypt pgp_autosign pgp_encryptself pgp_long_idssyn keyword muttrcVarBool contained pgp_replyencrypt pgp_replysign pgp_strict_enc pipe_decodesyn keyword muttrcVarBool contained pipe_split pop_delete prompt_after read_only resolvesyn keyword muttrcVarBool contained reverse_alias reverse_name save_address save_emptysyn keyword muttrcVarBool contained save_name sig_dashes smart_wrap sort_re status_on_topsyn keyword muttrcVarBool contained strict_threads suspend thorough_search tilde use_8bitmimesyn keyword muttrcVarBool contained use_domain use_from wait_key wrap_searchsyn keyword muttrcVarBool contained noallow_8bit noarrow_cursor noascii_chars noaskbcc noaskccsyn keyword muttrcVarBool contained noauto_tag noautoedit nobeep nobeep_new nocheck_newsyn keyword muttrcVarBool contained noconfirmappend noconfirmcreate noedit_headerssyn keyword muttrcVarBool contained nofast_reply nofcc_attach nofollowup_to noforce_namesyn keyword muttrcVarBool contained noforward_decode noforward_quote nohdrs noheader nohelpsyn keyword muttrcVarBool contained noignore_list_reply_to nomark_old nomarkers nomenu_scrollsyn keyword muttrcVarBool contained nometa_key nometoo nomime_forward_decode nopager_stopsyn keyword muttrcVarBool contained nopgp_autoencrypt nopgp_autosign nopgp_encryptselfsyn keyword muttrcVarBool contained nopgp_long_ids nopgp_replyencrypt nopgp_replysignsyn keyword muttrcVarBool contained nopgp_strict_enc nopipe_decode nopipe_split nopop_deletesyn keyword muttrcVarBool contained noprompt_after noread_only noresolve noreverse_aliassyn keyword muttrcVarBool contained noreverse_name nosave_address nosave_empty nosave_namesyn keyword muttrcVarBool contained nosig_dashes nosmart_wrap nosort_re nostatus_on_topsyn keyword muttrcVarBool contained nostrict_threads nosuspend nothorough_search notildesyn keyword muttrcVarBool contained nouse_8bitmime nouse_domain nouse_from nowait_keysyn keyword muttrcVarBool contained nowrap_searchsyn keyword muttrcVarBool contained invallow_8bit invarrow_cursor invascii_chars invaskbccsyn keyword muttrcVarBool contained invaskcc invauto_tag invautoedit invbeep invbeep_newsyn keyword muttrcVarBool contained invcheck_new invconfirmappend invconfirmcreatesyn keyword muttrcVarBool contained invedit_headers invfast_reply invfcc_attach invfollowup_tosyn keyword muttrcVarBool contained invforce_name invforward_decode invforward_quote invhdrssyn keyword muttrcVarBool contained invheader invhelp invignore_list_reply_to invmark_oldsyn keyword muttrcVarBool contained invmarkers invmenu_scroll invmeta_key invmetoosyn keyword muttrcVarBool contained invmime_forward_decode invpager_stop invpgp_autoencryptsyn keyword muttrcVarBool contained invpgp_autosign invpgp_encryptself invpgp_long_idssyn keyword muttrcVarBool contained invpgp_replyencrypt invpgp_replysign invpgp_strict_encsyn keyword muttrcVarBool contained invpipe_decode invpipe_split invpop_delete invprompt_aftersyn keyword muttrcVarBool contained invread_only invresolve invreverse_alias invreverse_namesyn keyword muttrcVarBool contained invsave_address invsave_empty invsave_name invsig_dashessyn keyword muttrcVarBool contained invsmart_wrap invsort_re invstatus_on_topsyn keyword muttrcVarBool contained invstrict_threads invsuspend invthorough_search invtildesyn keyword muttrcVarBool contained invuse_8bitmime invuse_domain invuse_from invwait_keysyn keyword muttrcVarBool contained invwrap_searchsyn keyword muttrcVarQuad contained abort_nosubject abort_unmodified copy delete includesyn keyword muttrcVarQuad contained mime_forward move pgp_verify_sig postpone print quitsyn keyword muttrcVarQuad contained recall reply_to use_mailcapsyn keyword muttrcVarQuad contained noabort_nosubject noabort_unmodified nocopy nodeletesyn keyword muttrcVarQuad contained noinclude nomime_forward nomove nopgp_verify_sigsyn keyword muttrcVarQuad contained nopostpone noprint noquit norecall noreply_tosyn keyword muttrcVarQuad contained nouse_mailcapsyn keyword muttrcVarQuad contained invabort_nosubject invabort_unmodified invcopy invdeletesyn keyword muttrcVarQuad contained invinclude invmime_forward invmove invpgp_verify_sigsyn keyword muttrcVarQuad contained invpostpone invprint invquit invrecall invreply_tosyn keyword muttrcVarQuad contained invuse_mailcapsyn keyword muttrcVarNum contained history imap_checkinterval mail_check pager_contextsyn keyword muttrcVarNum contained pager_index_lines pgp_timeout pop_port read_incsyn keyword muttrcVarNum contained sendmail_wait timeout write_incsyn keyword muttrcVarStr contained alias_file alias_format alternates attribution charsetsyn keyword muttrcVarStr contained date_format default_hook delete_format dsn_notifysyn keyword muttrcVarStr contained dsn_return edit_hdrs editor escape folder folder_formatsyn keyword muttrcVarStr contained forw_decode forw_format forw_quote forward_formatsyn keyword muttrcVarStr contained hdr_format hostname imap_pass imap_user in_reply_tosyn keyword muttrcVarStr contained indent_str indent_string index_format ispell localesyn keyword muttrcVarStr contained mailcap_path mask mbox mbox_type message_format mime_fwdsyn keyword muttrcVarStr contained msg_format pager pager_format pgp_default_versionsyn keyword muttrcVarStr contained pgp_default_version pgp_default_version pgp_gpgsyn keyword muttrcVarStr contained pgp_key_version pgp_receive_version pgp_send_versionsyn keyword muttrcVarStr contained pgp_sign_as pgp_sign_micalg pgp_v2 pgp_v2_languagesyn keyword muttrcVarStr contained pgp_v2_pubring pgp_v2_secring pgp_v5 pgp_v5_languagesyn keyword muttrcVarStr contained pgp_v5_pubring pgp_v5_secring pipe_sep pop_host pop_passsyn keyword muttrcVarStr contained pop_user post_indent_str post_indent_string postponedsyn keyword muttrcVarStr contained print_cmd print_command query_command quote_regexpsyn keyword muttrcVarStr contained realname record reply_regexp sendmail shell signaturesyn keyword muttrcVarStr contained simple_search sort sort_alias sort_aux sort_browsersyn keyword muttrcVarStr contained spoolfile status_chars status_format tmpdir to_charssyn keyword muttrcVarStr contained visualsyn keyword muttrcMenu contained alias attach browser compose editor generic index pagersyn keyword muttrcMenu contained pgpsyn keyword muttrcCommand alternative_order auto_view fcc-hook fcc-save-hook folder-hooksyn keyword muttrcCommand hdr_order ignore lists mailboxes mbox-hook my_hdr push resetsyn keyword muttrcCommand save-hook score send-hook source toggle unalias uncolor unignoresyn keyword muttrcCommand unlists unmy_hdr unscore unsetsyn keyword muttrcSet set skipwhite nextgroup=muttrcVar.*syn keyword muttrcUnset unset skipwhite nextgroup=muttrcVar.*syn keyword muttrcBind contained bind skipwhite nextgroup=muttrcMenusyn match muttrcBindLine "^\s*bind\s\+\S\+" skipwhite nextgroup=muttrcKey\(Name\)\= contains=muttrcBindsyn keyword muttrcMacro contained macro skipwhite nextgroup=muttrcMenusyn match muttrcMacroLine "^\s*macro\s\+\S\+" skipwhite nextgroup=muttrcKey\(Name\)\= contains=muttrcMacrosyn keyword muttrcAlias contained aliassyn match muttrcAliasLine "^\s*alias\s\+\S\+" contains=muttrcAlias" Colour definitions takes object, foreground and background arguments (regexps excluded).syn keyword muttrcColorField contained attachment body bold error hdrdefault header indexsyn keyword muttrcColorField contained indicator markers message normal quoted search signaturesyn keyword muttrcColorField contained status tilde tree underlinesyn match muttrcColorField contained "\<quoted\d\=\>"syn keyword muttrcColorFG contained black blue cyan default green magenta red white yellowsyn keyword muttrcColorFG contained brightblue brightcyan brightdefault brightgreensyn keyword muttrcColorFG contained brightmagenta brightred brightwhite brightyellowsyn match muttrcColorFG contained "\<\(bright\)\=color\d\{1,2}\>"syn keyword muttrcColorBG contained black blue cyan default green magenta red white yellowsyn match muttrcColorBG contained "\<color\d\{1,2}\>"" Now for the matchsyn keyword muttrcColor contained color skipwhite nextgroup=muttrcColorFieldsyn match muttrcColorInit contained "^\s*color\s\+\S\+" skipwhite nextgroup=muttrcColorFG contains=muttrcColorsyn match muttrcColorLine "^\s*color\s\+\S\+\s\+\S" skipwhite nextgroup=muttrcColorBG contains=muttrcColorInit" Mono are almost like color (ojects inherited from color)syn keyword muttrcMonoAttrib contained bold none normal reverse standout underlinesyn keyword muttrcMono contained mono skipwhite nextgroup=muttrcColorFieldsyn match muttrcMonoLine "^\s*mono\s\+\S\+" skipwhite nextgroup=muttrcMonoAttrib contains=muttrcMono" obsoletesyn keyword muttrcKeyName contained backspace delete down end enter home insert left pagedownsyn keyword muttrcKeyName contained pageup return right upsyn keyword muttrcVarBool contained confirmfiles confirmfolders hold no_hdrs pgp_replypgpsyn keyword muttrcVarBool contained point_new noconfirmfiles noconfirmfolders nohold nono_hdrssyn keyword muttrcVarBool contained nopgp_replypgp nopoint_new invconfirmfilessyn keyword muttrcVarBool contained invconfirmfolders invhold invno_hdrs invpgp_replypgpsyn keyword muttrcVarBool contained invpoint_new attach_split edit_hdrs forw_decode forw_quotesyn keyword muttrcVarBool contained mime_fwdsyn keyword muttrcVarNum contained referencessyn keyword muttrcVarQuad contained verify_sigsyn keyword muttrcVarStr contained local_sig local_site pgp pgp_pubring pgp_secringsyn keyword muttrcVarStr contained pgp_version remote_sig thread_chars url_regexp web_browsersyn keyword muttrcVarStr contained decode_format pgp_v3 pgp_v3_language pgp_v3_pubringsyn keyword muttrcVarStr contained pgp_v3_secring sendmail_bouncesyn keyword muttrcMenu contained urlsyn keyword muttrcCommand alternates localsite unlocalsite" Define the default highlighting." For version 5.7 and earlier: only when not done already" For version 5.8 and later: only when an item doesn't have highlighting yetif version >= 508 || !exists("did_muttrc_syntax_inits") if version < 508 let did_muttrc_syntax_inits = 1 command -nargs=+ HiLink hi link <args> else command -nargs=+ HiLink hi def link <args> endif HiLink muttrcComment Comment HiLink muttrcEscape SpecialChar HiLink muttrcString String HiLink muttrcSpecial Special HiLink muttrcNumber Number HiLink muttrcQuadopt Boolean HiLink muttrcEmail Special HiLink muttrcHeader Type HiLink muttrcKeySpecial SpecialChar HiLink muttrcKey Type HiLink muttrcKeyName Macro HiLink muttrcVarBool Identifier HiLink muttrcVarQuad Identifier HiLink muttrcVarNum Identifier HiLink muttrcVarStr Identifier HiLink muttrcMenu Identifier HiLink muttrcCommand Keyword HiLink muttrcSet muttrcCommand HiLink muttrcUnset muttrcCommand HiLink muttrcBind muttrcCommand HiLink muttrcMacro muttrcCommand HiLink muttrcAlias muttrcCommand HiLink muttrcAliasLine Identifier HiLink muttrcColorField Identifier HiLink muttrcColorFG String HiLink muttrcColorBG muttrcColorFG HiLink muttrcColor muttrcCommand HiLink muttrcMonoAttrib muttrcColorFG HiLink muttrcMono muttrcCommand delcommand HiLinkendiflet b:current_syntax = "muttrc""EOF vim: ts=8 noet tw=100 sw=8 sts=0
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -