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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:03:12+00:00 2026-05-25T02:03:12+00:00

I want to remap the ^ key to <Esc> in VIM since it is

  • 0

I want to remap the ^ key to <Esc> in VIM since it is easier to reach on a german keyboard. As far as I understand there is no keycode for the ^ key and I have to use the termcap notation:

inoremap <t_*> <Esc>     " remap ^ to ESC
inoremap <C-t_*> <t_*>   " map CTRL-^ to the plain ^ (insert a '^' char)

But I could not find the termcap code for the circumlflex ^. Does anybody know a complete list of termcap codes for typical terminals. I want this solution to work for gvim in Ubuntu and Windows.

Edit: inoremap ^ <Esc> in Linux works partially. You have to press ^^. It only works perfectly if you use a non-dead-key layout. inoremap <C-^> ^ also does work fine with a non-dead-key layout but does not work at all with the default layout.

Solution: Use a keyboard layout that does not mute the ^ key and use the ^ (aka. circumflex or caret) as a std. ASCII character in your ~/.vimrc.

See superuser.com/questions/280005, how to disable dead keys in Windows. Thx Jens for the link.

Thx, Juve

  • 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-25T02:03:13+00:00Added an answer on May 25, 2026 at 2:03 am

    The caret ^ is a regular ASCII character; it stands for itself and does not produce any termcap/terminfo sequence, so what you attempt with <t_*> is futile.
    Try to find out how to turn off dead keys on windows and you’re done with ib’s solution.

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

Sidebar

Related Questions

I want to remap the decimal comma (German keyboard) to a point for certain
I have a url for ex : example.com/site/anyFolderName and i want to remap it
EDIT: I understand there is keyboard-quit (which is normally bound to C-g); but I'm
I'm having an issue when mapping the Shift key in VIM. I want Ctrl
I have a USB keyboard, and am trying to use Ukulele to remap certain
Want to run javascript function from parent window in child window Example I have
want to have a Hyperlink-Button in a gridView in which I can display a
Want to code a key pad for an calculator. What I want to make
I have a (pre-existing) table witha column 'foo'. I want the model to have
When writing non-code with vim, I often have the need to search for multiple

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.