Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-15-2015, 11:19 PM   #1
Registered: Jun 2009
Distribution: Linux from Scratch
Posts: 172

Rep: Reputation: 35
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to manage Vim plugins LXer Syndicated Linux News 1 07-13-2015 07:03 PM
[SOLVED] Fedora shows 'man vim' but when execute 'vim' got "bash: vim: command not found..." ? flash_os Linux - Newbie 19 01-04-2015 12:56 AM
vim tutorial in 5 minute, learn vi/vim is to know what the letters stand for cheats anish2good Linux - Newbie 1 07-16-2013 01:23 PM
Switching from vim to vim -g from inside vim iDragoon Linux - Software 4 05-15-2009 12:46 PM
Editor comparison: vim VS vim-lite, Cleaning vim Ruler2112 *BSD 4 04-13-2009 05:26 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:50 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration