ex-mode for Atom's vim-mode
Install both vim-mode-plus (or
vim-mode) and ex-mode. Type
: in command mode. Enter
Use the service to register commands, from your own package, or straight from
# in Atom's init.coffeeatom.packages.onDidActivatePackage (pack) ->if pack.name == 'ex-mode'Ex = pack.mainModule.provideEx()Ex.registerCommand 'z', -> console.log("Zzzzzz...")
You can also add aliases:
atom.packages.onDidActivatePackage (pack) ->if pack.name == 'ex-mode'Ex = pack.mainModule.provideEx()Ex.registerAlias 'WQ', 'wq'Ex.registerAlias 'Wq', 'wq'
lib/ex.coffee for some examples commands. Contributions are very welcome!
Groundwork is done. More ex commands are easy to add and will be coming as time permits and contributions come in.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.