From ceaaace436ecdb3d125ea6c312e572625dd2f234 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Thu, 12 Jan 2017 11:43:33 +0300 Subject: [PATCH] vim_db: handle older versions of vim I originally wrote this for a newer version of vim that didn't require the colon at the start of the line. Signed-off-by: Dan Carpenter --- smatch_data/db/vim_smdb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smatch_data/db/vim_smdb b/smatch_data/db/vim_smdb index 173d95d3..57600661 100755 --- a/smatch_data/db/vim_smdb +++ b/smatch_data/db/vim_smdb @@ -2,8 +2,8 @@ # Add these lines to your .vimrc file # -# map ! vim_smdb return_states :execute 'edit' system("cat ~/.smdb_tmp/cur") -# map ! vim_smdb :execute 'edit' system("cat ~/.smdb_tmp/cur") +# map :! vim_smdb return_states :execute 'edit' system("cat ~/.smdb_tmp/cur") +# map :! vim_smdb :execute 'edit' system("cat ~/.smdb_tmp/cur") # # Now you can move your cursor over a function and hit CTRL-c to see how it's # called or CTRL-r to see what it returns. Use the ":bd" command to get back to -- 2.11.4.GIT