     if @submode == 'linewise'
       @editor.selectLine()
 
+    @updateStatusBar()
+
   # Private: Resets the command mode back to it's initial state.
   #
   # Returns nothing.


    @editorView.on 'cursor:position-changed', @moveCursorBeforeNewline

  # Private: Used to enable insert mode.
  #
  # Returns nothing.

    for op in @opStack
      return op if op instanceof constructor
    false

  updateStatusBar: ->
    if !$('#status-bar-vim-mode').length
      atom.packages.once 'activated', ->
        atom.workspaceView.statusBar?.prependRight("<div id='status-bar-vim-mode' class='inline-block'>Command</div>")

    if @mode is "insert"
      $('#status-bar-vim-mode').html("Insert")
    else if @mode is "command"
      $('#status-bar-vim-mode').html("Command")
    else if @mode is "visual"
      $('#status-bar-vim-mode').html("Visual")
