Skip to content
This repository has been archived by the owner on Oct 16, 2019. It is now read-only.

Minor issue caused by my coding style ... #54

Open
harleypig opened this issue Jul 12, 2013 · 1 comment
Open

Minor issue caused by my coding style ... #54

harleypig opened this issue Jul 12, 2013 · 1 comment

Comments

@harleypig
Copy link

I prefer to have a space between my brackets and their contents in almost all cases. AutoClose works great for this, excepting one minor niggling little detail. Without AutoClose, I would type the following:

my $var = ( $self->is_true ) ? '1' : '0';

With AutoClose when I reach the 'e' in true the space has already been entered before the closing ), which is fine. But in order to continue past the closing paren I have to do 'Esc Shift-a' to continue typing. This breaks my flow a little.

Is there a way to say "if we've got an open paren and the user types a closing paren, just jump to the closing paren"?

@captbaritone
Copy link

I've been having the same problem, although I see a slightly different pain-point and expected result. For me the frustration comes from the fact that after I type "true", if I then type a space it inserts a second space rather than overwriting the one AutoClose inserted (which is what I would expect).

Any explanation, fix, or workaround would be greatly appreciated.

somini added a commit to somini/vim-autoclose that referenced this issue Mar 18, 2016
This feature skips the spaces when inserting a close pair.

TODO: Turn into a simple toggle.

Fix issue Townk#54 of the upstream repo.

Credit to bentomas@6a54ce6
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants