Shougo / neocomplcache.vim

Ultimate auto-completion system for Vim.
http://www.vim.org/scripts/script.php?script_id=2620
1.72k stars 135 forks source link

Some snippet issues #366

Closed rkumar closed 11 years ago

rkumar commented 11 years ago

I have been using this for several months while programming in shell. Just switched back to ruby and i find that ruby snippets do not complete if they are following a dot.

e.g. obj.ea

This should give me "each", similarly "eawi" should give "each_with_index". This only happens if i press a space followed by "ea".

Another thing I found was that "else" and "end" are not being indented. I finally switched off neocompl and they are indenting immediately.

ujihisa commented 11 years ago

indentation

check the FAQ section of neocomplcache doc :h neocomplcache

Shougo commented 11 years ago

This should give me "each", similarly "eawi" should give "each_with_index". This only happens if i press a space followed by "ea".

You should check the FAQ section of neosnippet. "Q: What if I want to expand a snippet trigger after (, [, " etc...:"

almassapargali commented 11 years ago

First of all, thank you for such great plugins) I use snipmate-snippets, and as you said I added options word. Now it works, but they don't shown in neocomplecache popup menu. Can u help me?

Shougo commented 11 years ago

Hmmm. Please upload your snippet file. I will test it.

almassapargali commented 11 years ago

Here is my snippets https://gist.github.com/anonymous/5203253 it,s taken from here: https://github.com/honza/snipmate-snippets I just added options word to ea and ead (lines 241, 244).

in my code if i write ea it shows: (i tried this words before) Screen Shot 2013-03-20 at 3 07 36 PM

but if i press tab snippet ea expands.

btw, in new files options word works good (until first usage): Screen Shot 2013-03-20 at 2 48 45 PM

Here is my settings: https://github.com/asapargali/dotfiles/blob/master/vim_settings/plugin/neo_stuff.vim

Shougo commented 11 years ago

I fixed it.

almassapargali commented 11 years ago

thank you, now it works