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 7401679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:32:14+00:00 2026-05-29T04:32:14+00:00

Background: Sometimes when editing in vim it is possible to have extra characters in

  • 0

Background:

Sometimes when editing in vim it is possible to have extra characters in a file that the user did not expect to be there because he was in “insert mode” when in a hurry and rushing to get something finished.

Fortunately, even if the user is rushing, pressing ESC a couple of times is always sufficient to get them out of insert mode and into normal mode, with no surprises.

Question:

Is there a key binding that works the same way for insert mode? Pressing “i” can get you into insert mode, but if you press it multiple times, you will start inserting the letter “i” into the file.

Goal:

The goal is to have some key binding for getting back into insert mode that the user can even press multiple times with eyes closed, and still not worry about “surprises” of unexpected characters being put into the file.

  • 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-29T04:32:15+00:00Added an answer on May 29, 2026 at 4:32 am

    <C-o>i should do the trick. <C-o> gets you temporarily to normal mode, but for only one command, if that command is “go to insert mode” than well, you simply return there.


    Edit: I could reproduce your error message now, and it seems the easiest thing to do is this:

    :nmap <C-i> i
    :imap <C-i> <C-o>i
    

    If do not map <C-i> in insert mode, but in normal mode only, then repeatedly hitting <C-i> will be idempotent.

    Thanks to Benoit for mentioning that <C-i> inserts a tab in insert mode.

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

Sidebar

Related Questions

Background We have a problem that sometimes the grid in Devexpress raise exception Raised
I have a background service that sometimes gets killed by the OS when it
Sometimes I get a broken background in Chrome. I do not get this error
Background: There are a lot of great tutorials and tricks pages for Vim, but
Background I have a MacAlly IceKey keyboard. This keyboard has volume buttons that require
I have a background task that updates a view. That task calls -setNeedsDisplay to
We have an application that downloads some files in the background. Our application pops
I've got a problem, that swing components in different parts of program have sometimes
Background We have worker processes that read jobs from a table in SqlServer then
I have got a C# user control, which has got it's own background worker

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.