Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 239 by viraptor: back to cmd-mode with backspace
http://code.google.com/p/yi-editor/issues/detail?id=239

Vim can use a backspace in an empty ex-mode line to go back to normal mode.
With vim bindings ':' + KBS should get back to normal mode.

What version of Yi are you using?
Yi devel/darcs

I expect something like:
--- old-yi/Yi/Keymap/Vim.hs     2009-03-05 01:52:47.000000000 +0000
+++ new-yi/Yi/Keymap/Vim.hs     2009-03-05 01:52:47.000000000 +0000
@@ -1082,7 +1082,7 @@
                        ,spec KTab   ?>>! completeMinibuffer
                        ,spec KEsc   ?>>! closeBufferAndWindowE
                        ,ctrlCh 'h'  ?>>! deleteB Character Backward
-                      ,spec KBS    ?>>! deleteB Character Backward
+                      ,spec KBS    ?>>! do ls <- withBuffer' elemsB ; if
length ls == 0 then withEditor closeBufferAndWindowE else withBuffer $
deleteB Character Backward
                        ,spec KDel   ?>>! deleteB Character Forward
                        ,ctrlCh 'p'  ?>>! historyUp
                        ,spec KUp    ?>>! historyUp

(without the bug that causes the cursor to skip before the prev.  
character :) )

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Yi development mailing list
[email protected]
http://groups.google.com/group/yi-devel
-~----------~----~----~----~------~----~------~--~---

Reply via email to