VSCodeVim / Vim

:star: Vim for Visual Studio Code
http://aka.ms/vscodevim
MIT License
13.73k stars 1.31k forks source link

Could not move the cursor to previous/next line with 'h' and 'l' under visual mode #9133

Closed WalterScottYoung closed 1 month ago

WalterScottYoung commented 1 month ago

Describe the bug

Under visual mode, if the cursor was at the start of the line, press 'h' won't move the cursor, whereas vim would move the cursor to the end of previous line. Same thing happens when the cursor was at the end of the line, where press 'l' would not move the cursor to the start of next line.

This seems to be a basic behaviour, it might be I'm missing some settings here or is it a feature of vscode-vim ?

To Reproduce Steps to reproduce the behavior:

  1. Open any text file with multiple lines
  2. press 'v' to enter visual mode
  3. press '$' to move cursor to the end of line
  4. now press 'l' won't move the cursor to next line

Expected behavior

Cursor should move to the start of the next line.

Environment (please complete the following information):

can be repeated on

WalterScottYoung commented 1 month ago

this can be set with "vim.whichwrap" : "l,h"