From 5f5acc8d6db4cd0a444b1efc73877691f2f8e52c Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Sat, 4 Oct 2014 21:59:58 -0700 Subject: [PATCH] Stop using wrapper script in keywordprg We can terminate keywordprg with a backslash in order to escape the space Vim adds between it and the keyword. This means we don't need the wrapper script anymore. Fixes #1. --- bin/man.fish | 1 - ftplugin/fish.vim | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) delete mode 100755 bin/man.fish diff --git a/bin/man.fish b/bin/man.fish deleted file mode 100755 index f8cbdfd..0000000 --- a/bin/man.fish +++ /dev/null @@ -1 +0,0 @@ -man $argv diff --git a/ftplugin/fish.vim b/ftplugin/fish.vim index d9467ff..1eeaf50 100644 --- a/ftplugin/fish.vim +++ b/ftplugin/fish.vim @@ -35,9 +35,7 @@ else endif " Use the 'man' wrapper function in fish to include fish's man pages. -" Have to use a script for this; 'fish -c man' would make the the man page an -" argument to fish instead of man. -execute 'setlocal keywordprg=fish\ '.expand(':p:h:h').'/bin/man.fish' +setlocal keywordprg=fish\ -c\ man\\ let b:match_words = escape( \'<%(begin|function|%(else\s\+)\@:::'