summaryrefslogtreecommitdiff
path: root/ex_command.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-04-05 20:50:28 -0400
committerJakob Kaivo <jkk@ung.org>2019-04-05 20:50:28 -0400
commit344b1d241863cdee4ae645d1d02df48bf905af3f (patch)
treed2ee3b8285818fe95a3c9c728dca323511bdbf5e /ex_command.c
outline
Diffstat (limited to 'ex_command.c')
-rw-r--r--ex_command.c54
1 files changed, 54 insertions, 0 deletions
diff --git a/ex_command.c b/ex_command.c
new file mode 100644
index 0000000..bb491a0
--- /dev/null
+++ b/ex_command.c
@@ -0,0 +1,54 @@
+#include "ex.h"
+
+static struct {
+ const char *sname;
+ const char *lname;
+ void (*fn)();
+} ex_commands[] = {
+ { "ab", "abbreviate", ex_abbreviate },
+ { "a", "append", ex_append },
+ { "ar", "args", ex_args },
+ { "c", "change", ex_change },
+ { "chd", "chdir", ex_chdir },
+ { "co", "copy", ex_copy },
+ { "t", "t", ex_copy },
+ { "d", "delete", ex_delete },
+ { "e", "edit", ex_edit },
+ { "f", "file", ex_file },
+ { "g", "global", ex_global },
+ { "v", "v", ex_global },
+ { "i", "insert", ex_insert },
+ { "j", "join", ex_join },
+ { "l", "list", ex_list },
+ { "map", "map", ex_map },
+ { "ma", "mark", ex_mark },
+ { "k", "k", ex_mark },
+ { "m", "move", ex_move },
+ { "n", "next", ex_next },
+ { "nu", "number", ex_number },
+ { "#", "#", ex_number },
+ { "o", "open", ex_open },
+ { "pre", "preserve", ex_preserve },
+ { "p", "print", ex_print },
+ { "pu", "put", ex_put },
+ { "q", "quit", ex_quit },
+ { "r", "read", ex_read },
+ { "rec", "recover", ex_recover },
+ { "rew", "rewind", ex_rewind },
+ { "se", "set", ex_set },
+ { "sh", "shell", ex_shell },
+ { "so", "source", ex_source },
+ { "s", "substitute", ex_substitute },
+ { "&", "&", ex_ampersand },
+ { "~", "~", ex_tilde },
+ { "su", "suspend", ex_suspend },
+ { "ta", "tag", ex_tag },
+ { "una", "unabbrev", ex_unabbrev },
+ { "u", "undo", ex_undo },
+ { "unm", "unmap", ex_unmap },
+ { "ve", "version", ex_version },
+ { "vi", "visual", ex_visual },
+ { "w", "write", ex_write },
+ { "wq", "wq", ex_wq },
+ { "x", "xit", ex_xit },
+};