           @copy @selection.toString()
           @selection.deleteFromDocument()
 
+      # If the input is empty, then enter insert mode immediately
+      unless @element.isContentEditable
+        if @element.value.trim() == ""
+          enterInsertMode()
+          HUD.showForDuration "Input empty, entered insert mode directly.", 3500
+
   enterVisualMode: (options = {}) ->
     defaults =
       underEditMode: true

      which = if direction == forward then "start" else "end"
      @selection.extend original["#{which}Container"], original["#{which}Offset"]

  # Run a movement command.
  runMovement: (movement) ->
    @selection.modify @alterMethod, movement.split(" ")...



  # An approximation of the vim "w" movement.
  moveForwardWord: (direction) ->
    @runMovement movement for movement in [ "forward word", "forward word", "backward word" ]

  movements:
    "l": "forward character"
