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

  • Home
  • SEARCH
  • 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 8044327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:11:36+00:00 2026-06-05T05:11:36+00:00

My Vim on MinGW 4.6.2 is behaving weirdly, for example, pressing Backspace in insert

  • 0

My Vim on MinGW 4.6.2 is behaving weirdly, for example, pressing Backspace in insert mode deletes characters, but I have to move the cursor with arrow keys before the deleted characters disappear, and it also takes me out of insert mode.

Another example, pressing Del to delete characters sometimes generates weird characters like changing lowercase characters to uppercase, or corrupts the next character that I key in, for example pressing ‘S’ gives me ‘$’ initally.

Am I using Vim wrong or something? I’m not too unfamiliar with Vim so I’m not sure if this is default behaviour, but the typical Vim behaviour as I understand is like the Vim in Git Bash, where Backspace and Del work like they do in NotePad.

  • 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-06-05T05:11:39+00:00Added an answer on June 5, 2026 at 5:11 am

    The thing is, backspace is often ^H and delete is often ^? — and some idiot terminals swap the two or have both provide the same character. When some terminals are really wrong, a keypress will generate ESC~<something> and the ESC will put vim into command mode, then the ~ will swap the case of characters, and so on.

    You’ve also got the terminfo or termcap databases of terminal capabilities to contend with — if your TERM environment variable does not match the running terminal exactly, the wrong capabilities will be selected and the application will generate the wrong escape sequences to properly control the terminal.

    Of course, running on Windows further complicates everything because terminals aren’t very native to the platform — CMD.EXE does its own thing, MSYS does another, and vim is probably expected bog-standard CMD.EXE just because it is quite common.

    All these are reasons why I’d recommend using gvim; it starts a GUI window that behaves almost exactly like the text-mode vim, but it is much more predictable in its behavior and you can configure it entirely within gvim — fixing vim‘s behavior might actually mean changing the MSYS configuration, which may break other programs. I dislike the way gvim starts a “new context” rather than just editing in the environment I’m already using but gvim feels way less awkward under Windows.

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

Sidebar

Related Questions

I have installed Vim and MinGW on my machine, so I try to create
In vim, in normal mode, if the cursor is in a word, not the
In Vim , how do I insert characters at the beginning of each line
ViM has this option hlsearch where a searched string is displayed in highlight mode
In vim et al, you can increase or decrease the number your cursor is
Vim has templates and idioms programming and other similar stuff. For example, the c.vim
I want to develop C on Windows, but I really like just using vim
Vim customization -- I have added these lines in my .vimrc inoremap /* /**/<
Vim (actually, gvim is in question, but I believe it works both ways) upon
In Vim, is there a way to move the selected text into <current_file>.bak ,

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.