Ex mode for Atom
This is merely a suggestion to also default the `ctrl-[` keymap to
close ex-mode. This behaviour is very similar to vim's default
behaviour:
```
CTRL-[ *c_CTRL-[* *c_<Esc>* *c_Esc*
<Esc> When typed and 'x' not present in 'cpoptions', quit
Command-line mode without executing. In macros or when 'x'
present in 'cpoptions', start entered command.
Note: If your <Esc> key is hard to hit on your keyboard, train
yourself to use CTRL-[.
```
Is very similar to the currently supported `ctrl-c`
```
CTRL-C *c_CTRL-C*
quit command-line without executing
```
|
||
|---|---|---|
| .github | ||
| keymaps | ||
| lib | ||
| spec | ||
| styles | ||
| .editorconfig | ||
| .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-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