Ex mode for Atom
Find a file
Nate Holland f8b6ba2626 Add aliases for Wq and WQ for fat finger mistakes.
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.
2016-02-17 15:19:56 -06:00
keymaps working title 2015-02-19 18:11:25 +01:00
lib Add aliases for Wq and WQ for fat finger mistakes. 2016-02-17 15:19:56 -06:00
spec Add specs for :wall, :quitall and :wqall 2016-01-03 13:15:14 +01:00
styles distinguish prefix from input 2015-08-03 12:21:01 +02:00
.gitignore blank package 2015-02-19 08:29:59 +01:00
.travis.yml travis: install vim-mode 2015-07-30 08:55:14 +02:00
CHANGELOG.md Update changelog for 0.8.0 2016-01-03 13:29:18 +01:00
LICENSE.md blank package 2015-02-19 08:29:59 +01:00
package.json Prepare 0.8.0 release 2016-01-03 13:33:14 +01:00
README.md Remove "looking for new maintainer" disclaimer 2016-01-03 13:22:36 +01:00

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