Skip to content

Commit 38b1f2a

Browse files
committed
Add tagbar feature
1 parent 8572403 commit 38b1f2a

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ requirement
1313

1414
4. [Shougo/unite.vim](https://github.com/Shougo/unite.vim)
1515

16+
5. [tagbar](https://github.com/majutsushi/tagbar)
17+
18+
1619
install
1720

1821
- [neobundle.vim](https://github.com/Shougo/neobundle.vim)

plugin/javaunit.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function JaveUnitTestMethod(args,...)
3434
let currentClassName = expand("%:t:r")
3535
endif
3636
if a:args == ""
37-
let cwords = expand('<cword>')
37+
let cwords = split(airline#extensions#tagbar#currenttag(),'(')[0]
3838
if filereadable('pom.xml')
3939
let cmd='java -cp "'
4040
\.g:JavaUnit_tempdir

0 commit comments

Comments
 (0)