Mercurial > vim
diff runtime/scripts.vim @ 4681:2eb30f341e8d
Updated runtime files and translations.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 01 Jun 2013 14:50:56 +0200 |
parents | 04592728474a |
children | 2b11ac90d9e9 |
line wrap: on
line diff
--- a/runtime/scripts.vim +++ b/runtime/scripts.vim @@ -1,7 +1,7 @@ " Vim support file to detect file types in scripts " " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last change: 2012 Aug 30 +" Last change: 2013 May 24 " This file is called by an autocommand for every file that has just been " loaded into a buffer. It checks if the type of file can be recognized by @@ -327,6 +327,12 @@ else elseif s:line1 =~ '^\(commit\|tree\|object\) \x\{40\}\>\|^tag \S\+$' set ft=git + " Gprof (gnu profiler) + elseif s:line1 == 'Flat profile:' + \ && s:line2 == '' + \ && s:line3 =~ '^Each sample counts as .* seconds.$' + set ft=gprof + " CVS diff else let s:lnum = 1