Skip to content

Commit

Permalink
minor tweaks afte merging a new patch
Browse files Browse the repository at this point in the history
  • Loading branch information
mbbill committed Apr 28, 2014
1 parent 60a9c23 commit 3d90175
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
### [Link to vim.org](http://www.vim.org/scripts/script.php?script_id=1735)

### Install
Throw **[echofunc.vim](https://github.com/mbbill/echofunc/blob/master/plugin/echofunc.vim)** into *plugin* directory and that's all.
1. Method 1: download the entire 'after' directory and put in your *plugin* directory.
1. Method 2: Use pathogen or vundle to clone this repo.
1. add the following line in your vimrc to let pathogen recognize the 'after' folder.

call pathogen#incubate("after")

### How to use
1. *echofunc.vim* get function information from tags file. So first of all you need to create tags for your code.
Expand Down
4 changes: 3 additions & 1 deletion after/plugin/echofunc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,9 @@ function! EchoFunc()
if str =~# '\m^\s*('
let str = getline(line(".") - 1) . "("
endif
if str == '' || str !~# '\m\k\+\s*($'
"if str == '' || str !~# '\m\k\+\s*($'
"temporarily disable the check
if str == ''
return ''
endif
let str = substitute(str, '\m\s*(\+$','', "")
Expand Down

0 comments on commit 3d90175

Please sign in to comment.