vim-autoclose icon indicating copy to clipboard operation
vim-autoclose copied to clipboard

Minor issue caused by my coding style ...

Open harleypig opened this issue 11 years ago • 1 comments

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"?

harleypig avatar Jul 12 '13 19:07 harleypig

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.

captbaritone avatar Jul 20 '13 21:07 captbaritone