• Stars
    star
    169
  • Rank 224,453 (Top 5 %)
  • Language
    CoffeeScript
  • License
    MIT License
  • Created almost 10 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Ex mode for Atom

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'

Existing commands

This is the baseline list of commands supported in ex-mode.

Command Operation
q/quit/tabc/tabclose Close active tab
qall/quitall Close all tabs
tabe/tabedit/tabnew Open new tab
e/edit/tabe/tabedit/tabnew <file> Edit given file
tabn/tabnext Go to next tab
tabp/tabprevious Go to previous tab
tabo/tabonly Close other tabs
w/write Save active tab
w/write/saveas <file> Save as
wall/wa Save all tabs
sp/split Split window
sp/split <file> Open file in split window
s/substitute Substitute regular expression in active line
vsp/vsplit Vertical split window
vsp/vsplit <file> Open file in vertical split window
delete Cut active line
yank Copy active line
set <options> Set options
sort Sort all lines in file
sort <line range> Sort lines in line range

See lib/ex.coffee for the implementations of these 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

More Repositories

1

xbox_one_controller

HID-compliant Xbox One Controller driver for OS X
C++
218
star
2

matterfront

Mattermost frontend app for OS X, Windows and Linux
JavaScript
154
star
3

apply

Simple zero-dependency tool to provision *nix machines
Shell
50
star
4

trim_patcher

Enable TRIM on Mac OS X for non-Apple SSDs
Python
46
star
5

rsync

rsync algorithm in python
Python
38
star
6

dotfiles

My dot files
Shell
28
star
7

ruby-skyjam

A Google Music client gem
Ruby
21
star
8

unelastic

Disable Safari elastic scrolling a.k.a rubberbanding
JavaScript
14
star
9

linux-console-themes

A collection of color themes for the Linux VTs
Perl
11
star
10

sprockets-less

Better Less integration with Sprockets 2.x
Ruby
11
star
11

bitcoinj-wallet-dump

Dump wallets serialized by bitcoinj
Protocol Buffer
9
star
12

toolbelt

Various unix-ish command line tools
Python
8
star
13

py-skyjam

A simple script that lazily downloads your Google Play music.
Python
8
star
14

normandy

Channels for CSP style Ruby
Ruby
6
star
15

ObsidianClock

A Clock MenuExtra replacement for use with Obsidian Menu Bar
Objective-C
5
star
16

vim-one-colorschemes

One Dark and One Light themes from Atom for Vim
Vim Script
5
star
17

python-dcpu_16

DCPU-16 implementation in Python
Python
5
star
18

go_shell

Tutorial - Write a shell in Go
Go
4
star
19

ld48-29

Beneath the Surface
Go
3
star
20

mattermost-newrelic-integration

Send NewRelic alerts to Mattermost
Go
3
star
21

digitalocean-ext4-to-btrfs

Convert debian 8.0 ext4 root to btrfs
Shell
3
star
22

terminal-one-themes

One themes inspired from Atom for OS X Terminal
3
star
23

coreaudio_example

CoreAudio minimalist example (without Xcode)
C++
3
star
24

rebel

Rebel - Ruby-flavored SQL
Ruby
3
star
25

umodule-js

Minimalist CommonJS module definition and requirement implementation, squarely aimed at browsers
CoffeeScript
2
star
26

ruby-tee

Teeing enumerations into procs
Ruby
2
star
27

vimfiles

My Vim configuration files and modules
Vim Script
2
star
28

fishfiles

Fish configuration
Shell
2
star
29

package-ruby

A namespaced package system for Ruby
Ruby
2
star
30

tilt-pdf

Integrates PDF generation into a Tilt flow
Ruby
1
star
31

http-chunked-progress

Chunked Progress extension to HTTP
1
star
32

awesomerc

Awesome WM config files and custom widgets
Lua
1
star
33

wasp

A Lisp that stings
Python
1
star
34

pingscan

A highly threaded python network discovery utility.
Python
1
star
35

local_tunnel

Client for localtunnel.me
Ruby
1
star
36

he_comes

TO͇̹̺ͅƝ̴ȳ̳ TH̘Ë͖́̉ ͠P̯͍̭O̚​N̐Y̡
1
star
37

zipcode-fr

Query french zip codes and cities
Ruby
1
star
38

zipcode-db

Unified interface to query international zip/postal codes
Ruby
1
star
39

debride-slim

Extends debride to analyze Slim files
Ruby
1
star