LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-15-2015, 10:19 PM   #1
kc3
Member
 
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 02:46 AM.
 
  


Reply



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 06:03 PM
[SOLVED] Fedora shows 'man vim' but when execute 'vim' got "bash: vim: command not found..." ? flash_os Linux - Newbie 19 01-03-2015 11:56 PM
vim tutorial in 5 minute, learn vi/vim is to know what the letters stand for cheats anish2good Linux - Newbie 1 07-16-2013 12:23 PM
Switching from vim to vim -g from inside vim iDragoon Linux - Software 4 05-15-2009 11:46 AM
Editor comparison: vim VS vim-lite, Cleaning vim Ruler2112 *BSD 4 04-13-2009 04:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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