Permalink
Browse files

Remove *stars* from helptag. Return '' if no stars.

  • Loading branch information...
1 parent a6d179a commit 64c9c13b0895be1afd12ad33c15341f001832ed1 @nelstrom nelstrom committed Feb 25, 2013
Showing with 7 additions and 1 deletion.
  1. +7 −1 after/ftplugin/help/docopen.vim
@@ -11,5 +11,11 @@ function! GetFilename()
endfunction
function! GetHelptag()
- return expand('<cword>')
+ let word = expand('<cWORD>')
+ let unstarred = substitute(word, '\v^\*([^*]*)\*$', '\1', 'g')
+ if word != unstarred
+ return unstarred
+ else
+ return ''
+ endif
endfunction

0 comments on commit 64c9c13

Please sign in to comment.