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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:50:16+00:00 2026-06-09T13:50:16+00:00

I am a happy VIM user, although I admit I’m quite far from being

  • 0

I am a happy VIM user, although I admit I’m quite far from being fluent. I found this nice post:
Vim clear last search highlighting and I thought I’d become a better person if I didn’t have to hammer away a random character sequence every time I did a search. Now, I’m also using the vimrc config from here:

http://amix.dk/vim/vimrc.html

and the problem I have is that when I add the line nnoremap <esc> :noh<return><esc> to it (it doesn’t seem to make a difference where I put it) I get awkward behaviour when I use arrows in command mode, namely letters from A to D appear in a newline and I get switched to insert mode.

There has to be some mapping conflict but for the life of me I can’t figure out where it is.

EDIT: As it follows from the answers it turns out the Ultimate vimrc part is not relevant, the mentioned nnoremap command will cause altered arrow behaviour even if it’s the only vimrc entry. Changing title to a more informative one.

PS. I know I shouldn’t use arrows, hopefully I’ll get there one day.

  • 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-09T13:50:17+00:00Added an answer on June 9, 2026 at 1:50 pm

    The mapping

    nnoremap <esc> :noh<return><esc>
    

    will conflict with so called "grey keys" and I believe that it should be used either in GVim only or in terminal Vim by someone who does not use special keys like arrows.

    From what I know (and guess) how Vim processes keys, I would say that it’s impossible to do anything with this. For Vim to recognize special key all its components should go in a row, so when you press Arrow Left Vim gets the following sequence of codes:

    <esc> [ D

    But after your mapping Arrow Left becomes:

    : n o h l <cr> <esc>

    [ D

    Vim sees two separate sequences and treats <esc> as a single press of Escape key, thus next two codes of Left Arrow key lose their special meaning.

    So I suggest you to map :noh to some other key sequence (e.g. to one starting with <leader>, see :help mapleader; I don’t recommend you to use F-keys, using them is as bad as using of arrow keys).

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

Sidebar

Related Questions

I am a quite happy user of Eclipse (I mostly develop in PHP and
I do all my coding in vim and am quite happy with it (so,
I am a happy BASH user. I do not want to switch to another
I was quite happy with my JSF app which read the contents of MQ
Used to be quite happy with the Ctrl + Shift + F10 shortcut in
I am using Happy to generate a parser. I have found that when I
I was (quite) happy to use jpgraph for graphs in PHP, and when in
Happy Friday! I assume somebody out there has a simple answer to this question
Edit4: I'm happy working in this in Linux now, as I got the rest
I wasn't very happy with the default ToString() output from the PhysicalAddress class in

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.