diff options
Diffstat (limited to 'runtime/scripts.vim')
-rw-r--r-- | runtime/scripts.vim | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/scripts.vim b/runtime/scripts.vim index bb5a49251..459b03064 100644 --- 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 |