Ex mode for Atom
I always fat finger these two and then I get an error telling me that I am doing a command that doesn't exist. I added these two so that when I fat finger it and capitalize something the program still exits like I want it to. |
||
|---|---|---|
| keymaps | ||
| lib | ||
| spec | ||
| styles | ||
| .gitignore | ||
| .travis.yml | ||
| CHANGELOG.md | ||
| LICENSE.md | ||
| package.json | ||
| README.md | ||
ex-mode package
ex-mode for Atom's vim-mode
Use
Install both vim-mode and ex-mode. Type : in command mode. Enter w or write.
Extend
Use the service to register commands, from your own package, or straight from init.coffee:
# in Atom's init.coffee
atom.packages.onDidActivatePackage (pack) ->
if pack.name == 'ex-mode'
Ex = pack.mainModule.provideEx()
Ex.registerCommand 'z', -> console.log("Zzzzzz...")
# Register an alias - Now :W acts like :w
Ex.registerAlias 'W', 'w'
See lib/ex.coffee for some examples commands. Contributions are very welcome!
Status
Groundwork is done. More ex commands are easy to add and will be coming as time permits and contributions come in.
License
MIT