summaryrefslogtreecommitdiffstats
path: root/runtime/scripts.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-06-01 14:50:56 +0200
committerBram Moolenaar <Bram@vim.org>2013-06-01 14:50:56 +0200
commit543b7ef7000d08d77409478315d68b607bb8bad8 (patch)
tree387cd45294ce55a130556d4e22a0b7706156b1fd /runtime/scripts.vim
parent3737fc1c30a559c82c57b5ce6aedae76cbeabaef (diff)
Updated runtime files and translations.
Diffstat (limited to 'runtime/scripts.vim')
-rw-r--r--runtime/scripts.vim8
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/scripts.vim b/runtime/scripts.vim
index bb5a492512..459b03064b 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