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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T23:03:23+00:00 2026-06-13T23:03:23+00:00

I want to remap another key combo, say CTRL – G , to function

  • 0

I want to remap another key combo, say CTRL–G, to function as CTRL–D does (note: not the same as S–Down/PageDown/CTRL–F).

What I have so far is:

nmap ^G :exe 'normal '.&scroll.'^E<CR>'

Bringing up my vim command mode and typing this in, it works perfectly. However, when I save my .vimrc and reload vim, I get the following error when pushing CTRL–G:

E114: Missing quote: '
E15: Invalid expression: 'normal '.&scroll.'

It seems to be stuck at not evaluating the ^E appropriately. However, I have been entirely unsuccessful in using or any other way of specifying CTRL–E. What am I missing here?

  • 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-13T23:03:23+00:00Added an answer on June 13, 2026 at 11:03 pm

    ^G and ^E are special characters, and do not work well when you put them in the .vimrc. You need to use <C-g> and <C-e>, but since your Ctrl+E is placed inside a string, you need to escape it and write \<C-e>. You also need to use double quotes instead of single quotes – otherwise you can’t do the escaping.

    In other note – you should probably use nnoremap instead of nmap, so that if you remap <C-e> somewhere else, <C-g> will still behave like the original <C-e>.

    • 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 ^ key to <Esc> in VIM since it is
I'm having an issue when mapping the Shift key in VIM. I want Ctrl
Want to run javascript function from parent window in child window Example I have
Want the function to sort the table by HP but if duplicate HPs then
Want to code a key pad for an calculator. What I want to make
want to rewrite urls like site.com/software to wp-content/themes/dir/software.php and something is not working.. Here's
I have a url for ex : example.com/site/anyFolderName and i want to remap it
I want to have the reverse of Ctrl + O to be Shift +
When someone goes on example.com/e/t/ I want it to remap to example.com/e/index.php?mode=t I also
I want to disable the tab key in my HTML form. I found following

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.