mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Use cursorMove command for up/down motions
This commit is contained in:
@ -38,8 +38,8 @@ defineMotionCommand('zH', Motions.ScrollLeftByHalfLine);
|
||||
defineMotionCommand('zL', Motions.ScrollRightByHalfLine);
|
||||
|
||||
// Up-down motions
|
||||
defineMotion('j', Motions.Down);
|
||||
defineMotion('k', Motions.Up);
|
||||
defineMotionCommand('j', Motions.Down);
|
||||
defineMotionCommand('k', Motions.Up);
|
||||
defineMotionCommand('gj', Motions.WrappedLineDown);
|
||||
defineMotionCommand('gk', Motions.WrappedLineUp);
|
||||
defineMotion('G', Motions.GoToLine);
|
||||
|
||||
@ -307,8 +307,8 @@ export const Motions = {
|
||||
|
||||
Left: new CursorMoveCommand('left'),
|
||||
Right: new CursorMoveCommand('right'),
|
||||
Down: new DownMotion(),
|
||||
Up: new UpMotion(),
|
||||
Down: new CursorMoveCommand('down'),
|
||||
Up: new CursorMoveCommand('up'),
|
||||
|
||||
EndOfLine: new EndOfLineMotion(),
|
||||
StartOfLine: new StartOfLineMotion(),
|
||||
|
||||
Reference in New Issue
Block a user