| 
									
										
										
										
											2011-04-28 19:02:44 +02:00
										 |  |  | " Vim syntax file | 
					
						
							| 
									
										
										
										
											2012-06-01 22:38:45 +02:00
										 |  |  | " Maintainer:	  Thilo Six | 
					
						
							|  |  |  | " Contact:	  <vim-dev at vim dot org> | 
					
						
							|  |  |  | "		  http://www.vim.org/maillist.php#vim-dev | 
					
						
							|  |  |  | " | 
					
						
							|  |  |  | " Description:	  display directory content inside Vim with syntax | 
					
						
							|  |  |  | "		  highlighting | 
					
						
							|  |  |  | " File:		  runtime/syntax/dirpager.vim | 
					
						
							|  |  |  | " Last Change:	  2012 May 19 | 
					
						
							| 
									
										
										
										
											2011-12-14 21:17:39 +01:00
										 |  |  | " Modeline:	  vim: ts=8:sw=2:sts=2: | 
					
						
							| 
									
										
										
										
											2011-04-28 19:02:44 +02:00
										 |  |  | " | 
					
						
							| 
									
										
										
										
											2012-06-01 22:38:45 +02:00
										 |  |  | " Credits:	  dirpager.vim is derived from Nikolai Weibulls dircolors.vim | 
					
						
							|  |  |  | " | 
					
						
							|  |  |  | " License:	  VIM License | 
					
						
							|  |  |  | "		  Vim is Charityware, see ":help Uganda" | 
					
						
							|  |  |  | " | 
					
						
							|  |  |  | " Usage:	  $ ls -la | view -c "set ft=dirpager" - | 
					
						
							| 
									
										
										
										
											2011-04-28 19:02:44 +02:00
										 |  |  | " | 
					
						
							| 
									
										
										
										
											2011-12-14 21:17:39 +01:00
										 |  |  | " | 
					
						
							|  |  |  | ",----[ ls(1posix) ]-------------------------------------------------- | 
					
						
							|  |  |  | " | 
					
						
							|  |  |  | " The  <entry type> character shall describe the type of file, as | 
					
						
							|  |  |  | "       follows: | 
					
						
							|  |  |  | " | 
					
						
							|  |  |  | "       d	Directory. | 
					
						
							|  |  |  | "       b	Block special file. | 
					
						
							|  |  |  | "       c	Character special file. | 
					
						
							|  |  |  | "       l (ell)	Symbolic link. | 
					
						
							|  |  |  | "       p	FIFO. | 
					
						
							|  |  |  | "       -	Regular file. | 
					
						
							|  |  |  | " | 
					
						
							| 
									
										
										
										
											2011-04-28 19:02:44 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-12-14 21:17:39 +01:00
										 |  |  | if exists("b:current_syntax") || &compatible | 
					
						
							| 
									
										
										
										
											2011-04-28 19:02:44 +02:00
										 |  |  |   finish | 
					
						
							|  |  |  | endif | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | setlocal nowrap | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | syn keyword  DirPagerTodo	contained FIXME TODO XXX NOTE | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | syn region   DirPagerExe	start='^...x\|^......x\|^.........x' end='$'	contains=DirPagerTodo,@Spell | 
					
						
							|  |  |  | syn region   DirPagerDir	start='^d' end='$'	contains=DirPagerTodo,@Spell | 
					
						
							|  |  |  | syn region   DirPagerLink	start='^l' end='$'	contains=DirPagerTodo,@Spell | 
					
						
							| 
									
										
										
										
											2011-12-14 21:17:39 +01:00
										 |  |  | syn region   DirPagerSpecial	start='^b' end='$'	contains=DirPagerTodo,@Spell | 
					
						
							|  |  |  | syn region   DirPagerSpecial	start='^c' end='$'	contains=DirPagerTodo,@Spell | 
					
						
							|  |  |  | syn region   DirPagerFifo	start='^p' end='$'	contains=DirPagerTodo,@Spell | 
					
						
							| 
									
										
										
										
											2011-04-28 19:02:44 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | hi def link  DirPagerTodo	Todo | 
					
						
							|  |  |  | hi def	     DirPagerExe	ctermfg=Green	    guifg=Green | 
					
						
							|  |  |  | hi def	     DirPagerDir	ctermfg=Blue	    guifg=Blue | 
					
						
							|  |  |  | hi def	     DirPagerLink	ctermfg=Cyan	    guifg=Cyan | 
					
						
							| 
									
										
										
										
											2011-12-14 21:17:39 +01:00
										 |  |  | hi def	     DirPagerSpecial	ctermfg=Yellow	    guifg=Yellow | 
					
						
							|  |  |  | hi def	     DirPagerFifo	ctermfg=Brown	    guifg=Brown | 
					
						
							| 
									
										
										
										
											2011-04-28 19:02:44 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | let b:current_syntax = "dirpager" | 
					
						
							|  |  |  | 
 |