Closed vitorf7 closed 8 years ago
You can do this by adding following rules to your vimrc.
call lexima#add_rule({'char': '}', 'at': '\%#\n\s*}', 'leave': '}'})
call lexima#add_rule({'char': ']', 'at': '\%#\n\s*]', 'leave': ']'})
call lexima#add_rule({'char': ')', 'at': '\%#\n\s*)', 'leave': ')'})
any updates?
@cohama I have tried it and it worked. Sorry for the delay in responding
When you are writing for example a function like so:
When you press it will be like so:
Which is all ok but once you finish everything it would be ideal to be able to press } and then the cursor move to the position after the closing parentheses like so:
The same would apply to () and [] as those can be used in many languages (I am a PHP dev) to denote things like arrays, and function parameters etc.
Thanks.