Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can this pulgin auto complete symbol? #1

Closed
jinleileiking opened this issue Aug 11, 2010 · 4 comments
Closed

Can this pulgin auto complete symbol? #1

jinleileiking opened this issue Aug 11, 2010 · 4 comments

Comments

@jinleileiking
Copy link

like:

(|tab ---- ()

thanks alot!

@ervandew
Copy link
Owner

I don't think I follow your example. Can you elaborate on it?

@jinleileiking
Copy link
Author

for example:

foo is a func:

foo(|tab #generate :
foo()

@jinleileiking
Copy link
Author

i use snippets realize this:

http://github.com/jinleileiking/vimfiles/blob/master/snippets/ruby.snippets

please check the end of the file

@ervandew
Copy link
Owner

supertab doesn't really control what is completed, it just delegates to the appropriate vim insert completion. So if the insert completion method being used supports that completion (like user or omni completion) then supertab implicitly supports it as well.

However, it seems like what you really want is for snipmate to support completing the closing paren for you, but unfortunately when lookup up possible snippets for your example it is looking them up using the word foo(, not just ( and so it doesn't find your snippets. I'm not sure if there is some way to write the snippet with some kind of wildcard support or not.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants