kagesenshi / ex-mode

Ex mode for Atom

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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'

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

About

Ex mode for Atom

License:MIT License


Languages

Language:CoffeeScript 98.9%Language:CSS 1.1%