Use cursorMove command for up/down motions

This commit is contained in:
Sandeep Somavarapu
2016-08-03 12:04:33 +02:00
parent 937aa692e0
commit d7a60b2c70
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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(),