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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:32:01+00:00 2026-05-31T08:32:01+00:00

if some lines are too long, it will be forced to be newlined. for

  • 0

if some lines are too long, it will be forced to be newlined.

for example, normally a long line will looks like this

1 first line
2 this is the long second line of the file
3 third line.

but, if the window of a vim are too narrow, it will looks like this

1 first line
2 this is the long
  second line of the file
3 third line

the problem arise from this.

let’s assume the vim cursor are located at before ‘t’ in ‘third line’. if i type ‘k’, cursor will move to before ‘s’ in ‘second line of the file’. after that, if i type ‘k’ again, cursor will move to ‘f’ in ‘first line’!, not ‘t’ in ‘this is the long’. what i want is that the cursor move to ‘t’ in ‘this is the long’, it is more intuitive process for me. how can set my vim to works like this?

  • 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-31T08:32:02+00:00Added an answer on May 31, 2026 at 8:32 am

    In Vim, the gj and gk commands move by line on the screen rather than by line in the file. This sounds like it probably matches your description.

    You can modify your keys like this:

    :map j gj
    :map k gk
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to draw some lines with different colors. This code tries to draw
Consider the following problem: A multi-line string $junk contains some lines which are encoded
I have a file in UTF-8, where some lines contain the U+2028 Line Separator
I want to draw a graph that will be something like this: alt text
This program will have an infinite canvas (ie as long as the user scrolls,
I'm not the first to have these issues, and will list some reference posts
I want to draw some lines and rectangles on a panel. Sometimes it does
I have a huge file that has some lines that need to have a
I want to setup symlinks and add some lines to system configuration files, I
I have been reading over some code lately and came across some lines such

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.