vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

round-down.ref

(1064B)


      1 static const KeyBinding bindings_basic[] = {
      2 	{ "<C-z>",              ACTION(EDITOR_SUSPEND)                      },
      3 	{ "<Down>",             ACTION(CURSOR_LINE_DOWN)                    },
      4 	{ "<End>",              ACTION(CURSOR_LINE_END)                     },
      5 	{ "<Home>",             ACTION(CURSOR_LINE_BEGIN)                   },
      6 	{ "<|Left>",             ACTION(CURSOR_CHAR_PREV)                    },
      7 >>
      8 	{ "<PageDown>",         ACTION(WINDOW_PAGE_DOWN)                    },
      9 	{ "<PageUp>",           ACTION(WINDOW_PAGE_UP)                      },
     10 <<
     11 	{ "<Right|>",            ACTION(CURSOR_CHAR_NEXT)                    },
     12 	{ "<S-Left>",           ACTION(CURSOR_LONGWORD_START_PREV)          },
     13 	{ "<S-PageDown>",       ACTION(WINDOW_HALFPAGE_DOWN)                },
     14 	{ "<S-PageUp>",         ACTION(WINDOW_HALFPAGE_UP)                  },
     15 	{ "<S-Right>",          ACTION(CURSOR_LONGWORD_START_NEXT)          },
     16 	{ "<Up>",               ACTION(CURSOR_LINE_UP)                      },
     17 	{ 0 /* empty last element, array terminator */                      },
     18 };