Autoclose VIM Plugins
I know there are several VIM plugins to automatically close brackets, quotes and parentheses when typing however the ones I've tried aren't functioning the way I would hope and I'm wondering if I'm missing anything or if there's another plugin that would work.
First issue is if I type a bracket and press enter it simply moves down the second bracket. Example | being the user input
{
|}
When I really need it do is automatically enter a line and tab between such as
{
--[tab here]--|
}
Also, these plugins write over the closing symboles if you type them (which is great) however it doesn't move the cursor for the Enter key so if I want to continue to the next line I actually have to type the closing symbol and defeats the purpose of even using the plugin, example. (I hope I explained this well, if not hopefully an example will help) If I type enter after a function declaration and I go to the next line it simply does this.
void test(int test1
|)
I would think it would be useful if instead if you hit enter it would do this
void test(int test1)
|
The plugins I've tried so far is vim-autoclose, autoclose, ClosePairs and DelimitMate, any help would be appreciated, thanks.
Last edited by kc3; 08-16-2015 at 03:46 AM.
|