mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add h (move left) monvment to vimMode.
This commit is contained in:
@@ -39,6 +39,16 @@ describe "VimMode", ->
|
||||
expect(editor.buffer.getText()).toBe '1345'
|
||||
expect(editor.getCursor()).toEqual(column: 1, row: 0)
|
||||
|
||||
describe "the h/j/k/l keybindings", ->
|
||||
it "move the cursor left/up/down/right", ->
|
||||
editor.buffer.setText("12345\nabcde\nABCDE")
|
||||
editor.setCursor(column: 1, row: 1)
|
||||
|
||||
editor.trigger keydownEvent('h')
|
||||
expect(editor.getCursor()).toEqual(column: 0, row: 1)
|
||||
editor.trigger keydownEvent('h')
|
||||
expect(editor.getCursor()).toEqual(column: 0, row: 1)
|
||||
|
||||
describe "numeric prefix binding", ->
|
||||
it "repeats the following operation N times", ->
|
||||
editor.buffer.setText("12345")
|
||||
|
||||
Reference in New Issue
Block a user