     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")

    @editorView.addClass('insert-mode')

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

  # Private: Used to enable visual mode.
  #


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

    @updateStatusBar()

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