sim

the sim text editor
git clone git://ssnf.xyz/sim
Log | Files | Refs | README

config.def.h (1263B)


      1 #define STATUS "%lu 0x%02x %s%c -%lu- %u", f->dot.p1, f->s->s[f->dot.p1], f->name->n ? f->name->s : "-unnamed-", f->dirty, f - file, counter
      2 
      3 Key keys[] = {
      4 	{ 'c', change },
      5 	{ 'C', change , '\n' + 0x7f },
      6 	{ 'r', change, 'x' },
      7 	{ '0', count, 0 },
      8 	{ '1', count, 1 },
      9 	{ '2', count, 2 },
     10 	{ '3', count, 3 },
     11 	{ '4', count, 4 },
     12 	{ '5', count, 5 },
     13 	{ '6', count, 6 },
     14 	{ '7', count, 7 },
     15 	{ '8', count, 8 },
     16 	{ '9', count, 9 },
     17 	{ 'd', delete },
     18 	{ 'D', delete, '\n' + 0x7f },
     19 	{ 'x', delete , Letter },
     20 	{ '.', dot },
     21 	{ Esc, escape },
     22 	{ 'E', file_open },
     23 	{ 'q', file_close, -1 },
     24 	{ 'S', file_save, -1 },
     25 	{ 'h', gmove, Left },
     26 	{ 'j', gmove, Down },
     27 	{ 'k', gmove, Up },
     28 	{ 'l', gmove, Right },
     29 	{ Ctrl + 'd', gmove, HalfDown },
     30 	{ Ctrl + 'u', gmove, HalfUp },
     31 	{ 'g', gmove, Top },
     32 	{ 'w', gmove, Word },
     33 	{ 'e', gmove, EndWord },
     34 	{ 'b', gmove, PrevWord },
     35 	{ 'i', insert },
     36 	{ 'I', insert , StartLine},
     37 	{ 'A', insert , EndLine },
     38 	{ 'a', insert , Right },
     39 	{ 'o', insert , Down },
     40 	{ 'O', insert , Up },
     41 	{ '@', pline },
     42 	{ '$', move, EndLine },
     43 	{ 'G', move, Bottom },
     44 	{ 'p', paste },
     45 	{ 'Q', quit },
     46 	{ '/', search, '/' },
     47 	{ '?', search, '?' },
     48 	{ 'n', search, 'n' },
     49 	{ 'N', search, 'N' },
     50 	{ 'u', undo },
     51 	{ Ctrl + 'r', redo },
     52 	{ 'y', yank }
     53 };