Ex mode for Atom
Find a file
2017-08-16 19:50:48 +02:00
.github Update contributing guidelines 2016-08-15 23:31:08 +02:00
keymaps damn 2017-08-15 21:55:41 +02:00
lib Merge pull request #190 from RobertPaul01/sort 2017-08-08 21:11:25 +02:00
spec Adds another unit test 2017-08-06 23:40:06 -05:00
styles distinguish prefix from input 2015-08-03 12:21:01 +02:00
.editorconfig add editorconfig 2017-07-29 17:38:07 +02:00
.gitignore blank package 2015-02-19 08:29:59 +01:00
.travis.yml use generic and Xenial as dist 2017-08-16 19:50:48 +02:00
CHANGELOG.md Update CHANGELOG.md 2017-08-08 21:12:55 +02:00
LICENSE.md blank package 2015-02-19 08:29:59 +01:00
package.json ⬆️ 1.17.0 2017-07-29 17:49:40 +02:00
README.md update readme, trigger new build on travis 2017-08-15 21:51:18 +02:00

ex-mode package

ex-mode for Atom's vim-mode

Use

Install both vim-mode-plus (or the deprecated 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