Rename DeleteChar to DeleteRight

This commit is contained in:
Corey Johnson
2012-02-01 16:45:28 -08:00
parent 09dd7fe913
commit 14d4d5029e
2 changed files with 5 additions and 6 deletions

View File

@@ -28,7 +28,7 @@ class VimMode
@bindCommandModeKeys
'i': 'insert'
'd': 'delete'
'x': 'delete-char'
'x': 'delete-right'
'h': 'move-left'
'j': 'move-down'
'k': 'move-up'
@@ -38,7 +38,7 @@ class VimMode
@handleCommands
'insert': => @activateInsertMode()
'delete': => @delete()
'delete-char': => new commands.DeleteChar(@editor)
'delete-right': => new commands.DeleteRight(@editor)
'move-left': => new motions.MoveLeft(@editor)
'move-up': => new motions.MoveUp(@editor)
'move-down': => new motions.MoveDown @editor
@@ -101,4 +101,3 @@ class VimMode
topOperator: ->
_.last @opStack

View File

@@ -2,9 +2,9 @@ class Command
constructor: (@editor) ->
isComplete: -> true
class DeleteChar extends Command
class DeleteRight extends Command
execute: ->
@editor.deleteChar()
@editor.deleteRight()
module.exports = { DeleteChar }
module.exports = { DeleteRight }