Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7589927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:16:59+00:00 2026-05-30T20:16:59+00:00

I am making the switch to VIM from Textmate and I wanted to know

  • 0

I am making the switch to VIM from Textmate and I wanted to know what should be included in my .vimrc to get the similar behavior for:

  • auto-close on brackets, paranthesis, etc.
  • auto tabbing after a bracket
  • when i open a bracket and select enter, the open bracket is on 1st line, the cursor on the 2nd line indented, and the closing bracket on the 3rd line
  • pressing <tab> on for will generate a common ‘for’ use

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T20:17:00+00:00Added an answer on May 30, 2026 at 8:17 pm

    auto-close on brackets, paranthesis, etc.

    There are a number of plugins for this functionality: autoclose, closepairs, simplepairs

    auto tabbing after a bracket

    By this, I believe you mean automatic indentation. This is a default Vim behavior when you’re working on a supported filetype. If you’re just starting on a file and haven’t saved it, you can manually set the filetype with :set ft=<whatever filetype you want> and you’ll get indentation and syntax highlighting.

    when i open a bracket and select enter, the open bracket is on 1st line, the cursor on the 2nd line indented, and the closing bracket on the 3rd line

    This will be taken care of with the above auto-close plugins.

    pressing tab on for will generate a common ‘for’ use

    These are called “snippets” in TextMate. Snipmate is a commonly used Vim plugin for snippets. Other people prefer xptemplate.

    If you’re moving from TextMate to Vim, I would try installing Janus and thoroughly reading the documentation.

    Janus is a great starter distribution of plugins and mappings for Vim, gVim, and MacVim. It features sane defaults and aims to provide a minimal working environment using the most popular plug-ins and the most common mappings. It was developed and is maintained by Carl Lerche and former TextMate user Yehuda Katz.

    My own personal experience/advice is that you can really drive yourself crazy trying to mimic every feature of your favorite editor exactly as it was. Each feature you’re trying to replicate is probably just a quirk you became used to through muscle memory. You’ll be much more productive if you just start “accepting” Vim, learning it, and re-train your muscle memory for it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am making the switch from TextMate to Vim for all of my text
I am making my switch from coding in C++ to C#. I need to
We're making the switch from SourceGear Vault to TortoiseSVN with VisualSVN for Visual Studio
I am (slowly) making the switch to vim. I have added some settings to
I am making the switch from classic ASP to ASP.NET. And I am having
Recently making the switch from Prototype to jQuery , I am struggling with some
I'm making the switch to MongoDB from MySQL. A familiar architecture to me for
I am just making the switch from WebForms to MVC and would like to
I'm considering making the switch from MATLAB to Python. The application is quantitative trading
I'm making the switch from a centralized SCM system to GIT. OK, I'll admit

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.