X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/2034c72e12562eda33ce53d92cfef2216b6fcf3e..8d5262c3baedda02484404f792101aa61702af93:/vi.eng.inc.pl
diff --git a/vi.eng.inc.pl b/vi.eng.inc.pl
index 9a4f6f1..a4c1d7e 100644
--- a/vi.eng.inc.pl
+++ b/vi.eng.inc.pl
@@ -3,6 +3,7 @@ use utf8;
{
key => {
+"\e"=> ["normal mode"],
'~' => ["case toggle"],
'!' => ["filt$sign{_}er lines"],
'@' => ["play macro"],
@@ -126,7 +127,7 @@ key => {
'g8' => ["char hex val$sign{_}ue$sign{_}s"],
'g0' => ["virtual bol"],
'g-' => ["earlier undo"],
-'g^['=> ["esc"],
+"g\e"=> ["normal mode"],
'g]' => ["go to tselect"],
'g^]'=> ["go to tjump"],
'g;' => ["to prev change pos"],
@@ -171,7 +172,7 @@ key => {
'gw' => ["for$sign{_}mat still"],
'gx' => ["Netrw$sign{_}BrowseX"],
-'Z^['=> ["esc"],
+"Z\e"=> ["normal mode"],
'ZQ' => [" :q! (force)"],
'ZZ' => [" :wq (write)"],
@@ -180,7 +181,7 @@ key => {
'z-' => ["line at bottom bol", "don't (-) see any further"],
'z=' => ["sug$sign{_}gest spell$sign{_}ing"],
'z.' => ["line at center bol"],
-'z^['=> ["esc"],
+"z\e"=> ["normal mode"],
'za' => ["toggle fold"],
'zA' => ["toggle fold rec$sign{_}urs$sign{_}ive$sign{_}ly"],
@@ -227,7 +228,7 @@ key => {
'[/' => ["start of C com$sign{_}m$sign{_}ent"],
'[{' => ["previous open {"],
'[[' => ["section back$sign{_}ward$sign{_}s"],
-'[^['=> ["esc"],
+"[\e"=> ["normal mode"],
'[]' => [qq'section back$sign{_}ward$sign{_}s'],
'[c' => ["start of change backw$sign{_}ards"],
@@ -249,7 +250,7 @@ key => {
'])' => ["next open )"],
']/' => ["end of C com$sign{_}m$sign{_}ent"],
'][' => [qq'section forw$sign{_}ard'],
-']^['=> ["esc"],
+"]\e"=> ["normal mode"],
']]' => ["section forw$sign{_}ard"],
']}' => ["next open }"],
@@ -273,7 +274,7 @@ key => {
'^w+' => ["height incr$sign{_}ease"],
'^w-' => ["height decr$sign{_}ease"],
'^w=' => ["same height"],
-'^w^['=> ["esc"],
+"^w\e"=> ["normal mode"],
'^w]' => ["split, to tag"],
'^w}' => ["pre$sign{_}view tag"],
'^w|' => ["set width"],
@@ -309,7 +310,7 @@ key => {
'^wx' => ["ex$sign{_}chan$sign{_}ge"],
'^wz' => ["close pre$sign{_}view"],
-'^wg^['=> ["esc"],
+"^wg\e"=> ["normal mode"],
'^wg]' => ["split, :ts$sign{_}elect"],
'^wg}' => [":ptj$sign{_}ump to tag"],
'^wg^]'=> ["split, :tj$sign{_}ump"],
@@ -322,7 +323,7 @@ key => {
'v=' => ["re$sign{_}ind$sign{_}ent"],
'v>' => ["ind$sign{_}ent"],
'v~' => ["toggle case"],
-'v^['=> ["esc"],
+"v\e"=> ["normal mode"],
'v^]'=> ["jump to tag"],
'va' => ["ex$sign{_}tend area"],
@@ -354,7 +355,7 @@ key => {
'vy' => ["yank area"],
'vY' => ["yank lines"],
-'vg^['=> ["esc"],
+"vg\e"=> ["visual mode"],
'vg?' => ["rot13 encode"],
'vgJ' => ["join literal$sign{_}ly"],
'vgq' => ["for$sign{_}mat"],
@@ -363,7 +364,7 @@ key => {
"va'" => ["quoted string"],
'va<' => ["<> block"],
'va[' => ["[] block"],
-'va^['=> ["esc"],
+"va\e"=> ["visual mode"],
'vab' => ["() block"],
'vaB' => ["{} Block"],
@@ -387,7 +388,7 @@ key => {
'i^@' => ["last insert"],
'i^^' => ["toggle :lmap usag$sign{_}e"],
-'i^[' => ["esc"],
+"i\e" => ["normal mode"],
'i^]' => ["abbrev$sign{_}iate"],
'i^_' => ["toggle lang$sign{_}uage"],
@@ -416,12 +417,13 @@ key => {
'i^y' => ["ins char above"],
'i^z' => [":sus$sign{_}pend in im"],
+"i^g\e"=> ["insert mode"],
'i^gk' => ["$sign{up} start col$sign{_}umn"],
'i^gj' => ["$sign{down} start col$sign{_}umn"],
'i^gu' => ["break undo seq$sign{_}uence"],
# other i^g keys (even esc) are not recognized
-'i^x^[' => ["esc"],
+"i^x\e" => ["normal mode"],
'i^x^]' => ["tag comp$sign{_}l$sign{_}et$sign{_}e"],
'i^x^d' => ["def$sign{_}ine compl$sign{_}et$sign{_}e"],
'i^x^e' => ["window up"],
@@ -459,4 +461,20 @@ mode => {
'i^x' => "insert completion commands (i ctrl-x)",
},
+flag => {
+ ci => ["info", "Info command: shows/does something without altering anything."],
+ pm => ["motion", "Moves the cursor, or defines the range for an operator ($sign{motion})."],
+ po => ["positioning", "Other movement (jumps, window (re)positioning)."],
+ co => ["command", "Direct action command."],
+ mi => ["ins mode", "Enters Insert or Replace mode."],
+ mo => ["mode", "Enters a different mode."],
+ mv => ["vis mode", "Enters Visual or Select mode."],
+ me => ["key cmd", "Additional key commands (click for overview)."],
+
+ arg => ["key$sign{arg}", "Commands with a dot need a char argument afterwards."],
+ motion => ["key$sign{motion}", "Requires a motion afterwards, operates between cursor and destination."],
+ 'ext vim6' => ["vim", "Not in original Vi (assessment incomplete)."],
+ 'ext new vim7' => ["vim7", "New in vim version 7.x."],
+},
+
}