summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2014-08-01 12:29:46 +0200
committertv <tv@shackspace.de>2014-08-01 12:29:46 +0200
commite365b3883d6687617f28c730fe24ba8d710a94ea (patch)
treea27e07e9f1258212f40771616ca21300aedb4e0b
parent74ecb3f7b885f53e799c020355402c254868a686 (diff)
nmap: promote \x1b to the top
-rw-r--r--src/Main.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 11b246c..785147b 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -449,7 +449,8 @@ selectRegisterMap =
nmap :: Keymap
nmap =
- [ ("i", ChangeMode InsertMode)
+ [ ("\x1b", RingBell) -- TODO cancel any unfinished commands
+ , ("i", ChangeMode InsertMode)
, ("a", ChangeMode InsertMode <> MotionCommand (GotoRight 1))
, ("I", ChangeMode InsertMode <> MotionCommand GotoFirstChar)
, ("A", ChangeMode InsertMode <> MotionCommand GotoEndOfLine)
@@ -464,7 +465,6 @@ nmap =
, ("\x1b[C", MotionCommand $ GotoRight 1)
, ("\x1b[D", MotionCommand $ GotoLeft 1)
, ("\x0a", ExecuteInputBuffer <> ChangeMode InsertMode)
- , ("\x1b", RingBell) -- TODO cancel any unfinished commands
]
++ (map (\i -> (show i, MulCount 10 <> AddCount i)) [0..9])