added hex synatx higlighting
This commit is contained in:
		
							parent
							
								
									bf71ea8fba
								
							
						
					
					
						commit
						659bd464b5
					
				| 
						 | 
					@ -0,0 +1,11 @@
 | 
				
			||||||
 | 
					" vim -b : edit binary using xxd-format!
 | 
				
			||||||
 | 
					augroup Binary
 | 
				
			||||||
 | 
					  au!
 | 
				
			||||||
 | 
					  au BufReadPre  *.bin let &bin=1
 | 
				
			||||||
 | 
					  au BufReadPost *.bin if &bin | silent %!xxd
 | 
				
			||||||
 | 
					  au BufReadPost *.bin set ft=xxd | endif
 | 
				
			||||||
 | 
					  au BufWritePre *.bin if &bin | silent %!xxd -r
 | 
				
			||||||
 | 
					  au BufWritePre *.bin endif
 | 
				
			||||||
 | 
					  au BufWritePost *.bin if &bin | silent %!xxd
 | 
				
			||||||
 | 
					  au BufWritePost *.bin set nomod | endif
 | 
				
			||||||
 | 
					augroup END
 | 
				
			||||||
		Loading…
	
		Reference in New Issue