Ability to change multiline pair exiting #62

Open
jordwalke opened this Issue Sep 18, 2012 · 4 comments

Comments

Projects
None yet
2 participants
@jordwalke

delimitMate suffers from the following issue:
Raimondi/delimitMate#110

Is there a way to get smartinput to not have the same issue? What type of configuration would be required?

@jordwalke

This comment has been minimized.

Show comment Hide comment
@jordwalke

jordwalke Dec 5, 2012

I was able to avoid most of these issues (and create a more "Textmate" like feel) by changing several of the default mappings from _s* to s*:

For example, I've changed:

  \   {'at': '\%#\s*)', 'char': ')', 'input': '<C-r>=smartinput#_leave_block('')'')<Enter><Right>'},

to

  \   {'at': '\%#\_s*)', 'char': ')', 'input': '<C-r>=smartinput#_leave_block('')'')<Enter><Right>'},

I was able to avoid most of these issues (and create a more "Textmate" like feel) by changing several of the default mappings from _s* to s*:

For example, I've changed:

  \   {'at': '\%#\s*)', 'char': ')', 'input': '<C-r>=smartinput#_leave_block('')'')<Enter><Right>'},

to

  \   {'at': '\%#\_s*)', 'char': ')', 'input': '<C-r>=smartinput#_leave_block('')'')<Enter><Right>'},
@passy

This comment has been minimized.

Show comment Hide comment
@passy

passy Jun 12, 2013

👍

passy commented Jun 12, 2013

👍

@passy

This comment has been minimized.

Show comment Hide comment
@passy

passy Jun 12, 2013

Thanks, @jordow. I applied this patch and I'm a much happier person now.

passy commented Jun 12, 2013

Thanks, @jordow. I applied this patch and I'm a much happier person now.

@jordwalke

This comment has been minimized.

Show comment Hide comment
@jordwalke

jordwalke Oct 25, 2013

Since this project seems dead, I'd point you to this project:
https://github.com/MartinLafreniere/vim-PairTools

It's hands down the best pair tools that I've tried.

Since this project seems dead, I'd point you to this project:
https://github.com/MartinLafreniere/vim-PairTools

It's hands down the best pair tools that I've tried.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment