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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:40:49+00:00 2026-06-05T11:40:49+00:00

Sometimes I accidentally enter vim’s record macro mode by pressing ‘q’ (which I usually

  • 0

Sometimes I accidentally enter vim’s record macro mode by pressing ‘q’ (which I usually get out of by pressing q two more times.)

What are the commands to change the keybinding to start recording a macro from ‘q’ to ‘Q’?

I can stop ‘q’ from doing anything by setting

nnoremap q <Nop>

but I’m not sure how to get ‘Q’ to be the record macro shortcut.

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

    You can remap Q to quit and q to no command in two command lines Like this:

    nnoremap Q q
    nnoremap q <Nop>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sometimes I get errors that I suspect are the result of my Django app
Sometimes, I create local branches in git, and I'd like to get a warning
We make heavy use of page caching, and sometimes pages get cached with a
I type really fast and sometimes accidentally save a file with the name consisting
Sometimes in my code I have a function which can take an argument in
Sometimes, I'll run a program that accidentally contains an infinite loop or something. Eclipse
Sometimes I accidentally leave blank lines at the end of the file I am
Sometimes I accidentally hit a key combination to make the Android AVD emulator go
I sometime accidentally delete a wire in XIB table which will cause my app
Sometimes I accidentally forget to call the superclass's method in C++ when I override

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.