-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Autoclosing ruby blocks #280
Comments
I'll look into it.Steve Francia On Mon, Jan 28, 2013 at 6:16 PM, Loïc Guitaut notifications@git.luolix.topwrote:
|
Thank you! :) |
You are looking for Bundle 'tpope/vim-endwise' Make your Ruby bundle look like this |
The OmniComplete settings creats some havoc with this. You end up inserting
|
Does someone want to send me a PR for these changes? Best, -- From: Chris Nicola notifications@github.com The OmniComplete settings creats some havoc with this. You end up inserting pubvisible()... after hitting enter unless you change the mapping for it. Which is fine but you do have to comment out this line in .vimrc to make this work: "inoremap pumvisible() ? "" : "" — |
Yeah I'll put something together. Do you want to remove the mapping altogether (I'm not certain what it actually does since tab is what completes things for me, the mapping's behaviour is awkward). The alternative is I can add a variable for not mapping CR for OmniComplete that can be used instead. |
Let's add a variable, but have the default set to false ( not include it ). On Wednesday, June 18, 2014, Chris Nicola notifications@github.com wrote:
Steve Francia |
@Flink, have the fixes here resolved the issue? If so please close :) |
Hi!
I don’t know if this is really an issue, but still it is one for me. I’m currently using Janus and I’m thinking to switch to spf13.
When editing a ruby source file, I tried to create a new method. When hitting enter after
def method_name
I was expecting to have the block automatically completed (withend
) as Janus does.So far I only found documentation of vim-ruby saying that Shift+Enter should do the trick, but here it gives me an error (related to completion it seems).
Anyone knows how to enable this behavior?
The text was updated successfully, but these errors were encountered: