Skip to content
This repository has been archived by the owner on Jun 26, 2022. It is now read-only.

Commit

Permalink
Stop using wrapper script in keywordprg
Browse files Browse the repository at this point in the history
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 dag#1.
  • Loading branch information
lilyball committed Oct 5, 2014
1 parent 2b67e3e commit 5f5acc8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion bin/man.fish

This file was deleted.

4 changes: 1 addition & 3 deletions ftplugin/fish.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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('<sfile>:p:h:h').'/bin/man.fish'
setlocal keywordprg=fish\ -c\ man\\

let b:match_words = escape(
\'<%(begin|function|%(else\s\+)\@<!if|switch|while|for)>:<else\s\+if>:<else>:<end>'
Expand Down

0 comments on commit 5f5acc8

Please sign in to comment.