Provide the vim-mode service globally
This commit is contained in:
parent
32af5b18f5
commit
1ec4589831
2 changed files with 2 additions and 1 deletions
|
|
@ -32,5 +32,5 @@ module.exports = ExMode =
|
||||||
registerCommand: Ex.registerCommand.bind(Ex)
|
registerCommand: Ex.registerCommand.bind(Ex)
|
||||||
|
|
||||||
consumeVim: (vim) ->
|
consumeVim: (vim) ->
|
||||||
console.log vim
|
|
||||||
@vim = vim
|
@vim = vim
|
||||||
|
@globalExState.setVim(vim)
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
class GlobalExState
|
class GlobalExState
|
||||||
commandHistory: []
|
commandHistory: []
|
||||||
|
setVim: (@vim) ->
|
||||||
|
|
||||||
module.exports = GlobalExState
|
module.exports = GlobalExState
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue