Permalink
Browse files

Improve ObjC method jump

  • Loading branch information...
1 parent 295d393 commit ef94f44e876d243c0917ad7107e1f035233b32be @asivitz committed Jan 10, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 vimrc
View
6 vimrc
@@ -123,7 +123,11 @@ function! ObjCTagJump()
let l:parts = split(l:original)
if len(l:parts) == 2
- let l:result = l:parts[1]
+ let l:result = l:parts[1]
+ if l:parts[1] =~ '\k\+:'
+ let items = split(l:parts[1],":")
+ let l:result = items[0] . ":"
+ endif
else
let l:result = ""
for i in l:parts

0 comments on commit ef94f44

Please sign in to comment.