⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 squid.vim

📁 MSYS在windows下模拟了一个类unix的终端
💻 VIM
字号:
" Vim syntax file" Language:	Squid config file" Maintainer:	Klaus Muth <muth@hagos.de>" Last Change:	2001 May 09" URL:		http://unitopia.uni-stuttgart.de/~monty/vim/syntax/squid.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" squid.conf syntax seems to be case insensitivesyn case ignoresyn keyword	squidTodo	contained TODOsyn match	squidComment	"#.*$" contains=squidTodo,squidTagsyn match	squidTag	contained "TAG: .*$"" Lots & lots of Keywords!syn keyword	squidConf	http_port icp_port mcast_groupssyn keyword	squidConf	tcp_incoming_address tcp_outgoing_addresssyn keyword	squidConf	udp_incoming_address udp_outgoing_addresssyn keyword	squidConf	cache_host cache_host_domainsyn keyword	squidConf	neighbor_type_domain inside_firewallsyn keyword	squidConf	local_domain local_ip firewall_ipsyn keyword	squidConf	single_parent_bypass source_pingsyn keyword	squidConf	neighbor_timeout hierarchy_stoplistsyn keyword	squidConf	cache_stoplist cache_stoplist_patternsyn keyword	squidConf	cache_mem cache_swap cache_swap_lowsyn keyword	squidConf	cache_swap_high cache_mem_lowsyn keyword	squidConf	cache_mem_high maximum_object_sizesyn keyword	squidConf	ipcache_size ipcache_low ipcache_highsyn keyword	squidConf	cache_dir cache_access_log cache_logsyn keyword	squidConf	cache_store_log cache_swap_logsyn keyword	squidConf	emulate_httpd_log log_mime_hdrssyn keyword	squidConf	useragent_log pid_filenamesyn keyword	squidConf	debug_options ident_lookup log_fqdnsyn keyword	squidConf	client_netmask ftpget_programsyn keyword	squidConf	ftpget_options ftp_user cache_dns_programsyn keyword	squidConf	dns_children dns_defnames unlinkd_programsyn keyword	squidConf	pinger_program redirect_programsyn keyword	squidConf	redirect_children wais_relay request_sizesyn keyword	squidConf	refresh_pattern reference_age reference_agesyn keyword	squidConf	quick_abort quick_abort negative_ttlsyn keyword	squidConf	positive_dns_ttl negative_dns_ttlsyn keyword	squidConf	connect_timeout read_timeout client_lifetimesyn keyword	squidConf	shutdown_lifetime acl http_access miss_accesssyn keyword	squidConf	cache_host_acl cache_mgr cache_effective_usersyn keyword	squidConf	visible_hostname cache_announce announce_tosyn keyword	squidConf	httpd_accel httpd_accel_with_proxysyn keyword	squidConf	httpd_accel_uses_host_header dns_testnamessyn keyword	squidConf	logfile_rotate append_domainsyn keyword	squidConf	tcp_recv_bufsize ssl_proxy passthrough_proxysyn keyword	squidConf	proxy_auth err_html_text udp_hit_objsyn keyword	squidConf	udp_hit_obj_size memory_pools forwarded_forsyn keyword	squidConf	log_icp_queries minimum_direct_hopssyn keyword	squidConf	swap_level1_dirssyn keyword	squidConf	swap_level2_dirs store_avg_object_sizesyn keyword	squidConf	store_objects_per_bucket http_anonymizersyn keyword	squidConf	fake_user_agent client_dbsyn keyword	squidConf	netdb_low netdb_high netdb_ping_ratesyn keyword	squidConf	netdb_ping_period query_icmpsyn keyword	squidConf	icp_hit_stale reload_into_imssyn keyword	squidConf	cachemgr_passwdsyn keyword	squidOpt	proxy-only weight ttl no-query defaultsyn keyword	squidOpt	round-robin multicast-respondersyn keyword	squidOpt	on off all deny allow" Security Actions for cachemgr_passwdsyn keyword	squidAction	shutdown info parameter server_listsyn keyword	squidAction	client_listsyn match	squidAction	"stats/\(objects\|vm_objects\|utilization\|ipcache\|fqdncache\|dns\|redirector\|io\|reply_headers\|filedescriptors\|netdb\)"syn match	squidAction	"log\(/\(status\|enable\|disable\|clear\)\)\="syn match	squidAction	"squid\.conf"" Keywords for the acl-configsyn keyword	squidAcl	url_regexp urlpath_regexp port protosyn keyword	squidAcl	method browser user srcsyn match	squidNumber	"\<\d\+\>"syn match	squidIP		"\<\d\{1,3}\.\d\{1,3}\.\d\{1,3}\.\d\{1,3}\>"" All config is in one line, so this has to be sufficient" Make it fast like hell :)syn sync minlines=3" 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_squid_syntax_inits")  if version < 508    let did_squid_syntax_inits = 1    command -nargs=+ HiLink hi link <args>  else    command -nargs=+ HiLink hi def link <args>  endif  HiLink squidTodo	Todo  HiLink squidComment	Comment  HiLink squidTag	Special  HiLink squidConf	Keyword  HiLink squidOpt	Constant  HiLink squidAction	String  HiLink squidNumber	Number  HiLink squidIP	Number  HiLink squidAcl	Keyword  delcommand HiLinkendiflet b:current_syntax = "squid"" vim: ts=8

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -