From d7a60b2c707ddace088dd01b60988b9bd2e48652 Mon Sep 17 00:00:00 2001 From: Sandeep Somavarapu Date: Wed, 3 Aug 2016 12:04:33 +0200 Subject: [PATCH] Use cursorMove command for up/down motions --- vim-sample/src/mappings.ts | 4 ++-- vim-sample/src/motions.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vim-sample/src/mappings.ts b/vim-sample/src/mappings.ts index c7467241..99bd89f3 100644 --- a/vim-sample/src/mappings.ts +++ b/vim-sample/src/mappings.ts @@ -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); diff --git a/vim-sample/src/motions.ts b/vim-sample/src/motions.ts index 0502f69f..5a2ae558 100644 --- a/vim-sample/src/motions.ts +++ b/vim-sample/src/motions.ts @@ -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(),