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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T18:12:28+00:00 2026-05-16T18:12:28+00:00

When I switch to command mode in Vim, the cursor seems to move one

  • 0

When I switch to command mode in Vim, the cursor seems to move one character back when it’s at the end of or on a word, and when I go to the end-of-line with $, it does not go to the actual end of line but one character before the end of the last word, and l (“el”) does not move it forward and I have to use the arrow key to get there.

I haven’t been able to find documentation of this behavior, but this seems strange to me. What’s the reasoning behind this (for my own curiosity), and how can I get around it (or deal with it)?

  • 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-16T18:12:29+00:00Added an answer on May 16, 2026 at 6:12 pm

    it is a little more clear if you use gvim, where the cursor changes.

    insert mode in gvim has the cursor as an I-beam, since the next letter you type will be inserted after the |. normal mode has the block cursor, because the next thing you type may just effect the letter that is currently highlighted (like if you use x, s, etc). So insert mode is actually adding text, but normal mode is modifying text in some way.

    So in normal mode, jumping to the end of the line really just means the last character, since that is the last thing that is possible to be modified. in insert mode, the cursor goes passed the last character, since it is possible to add things afterwards.

    One thing to keep in mind is that you can control which side of the block you end up on going from normal mode to insert mode

    ([] means that the block cursor is over that h)

    Let’s say you have t[h]is text

    if you pressed i at this point, the cursor would look like this (in gvim)
    (| being the insert mode cursor)

    Let’s say you have t|his text

    if you pressed a instead of i, it would look like this

    Let’s say you have th|is text

    Another thing to keep in mind (as pavanlimo mentioned), from normal mode you can go to insert mode with your cursor just before the first character of the line, or just after the last character, with shift-I or shift-A.

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

Sidebar

Related Questions

does anyone know how to enable Ctrl-o to switch to normal-mode for one command
Is there a simple command line switch or a trick to renaming the generated
Does anybody know the difference between these two commands to switch and track a
So in C# the switch statement only supports integral types (not Guids), so a
I am using vim with the fugitive extension . It has a :Gdiff command
As the default behavior of IE is to switch to the full screen mode
EDIT: The question is, how to I switch to inspect mode? Through the External
Because the vertical output mode of the mysql command is very nice, I've setup
When Vim is in Insert mode and you press Ctrl-O it switches to normal
The usual behavior in vim is for C-o in insert-mode to allow the user

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.