Hi Mighty Developers,

I've just started using Yi out of curiosity, and stumbled upon minor
issues.

Sorry to post here, but I didn't find answer in lib doc files, nor did
I find "yi-users" group.

This all applies to Hackage package - yi 0.6.2.2.

1. When starting yi for a first time I get an option to use vim or
emacs mode. Then config is pre-generated, and saved, but it is always
with Emacs keybindings, even if I pick Vim mode.

Is it expected behaviour, or something to report?

2. I've got an error message about failed recompilation of config file
once, but never again. I'm running in Vim mode.
Is there any way to always get detailed error message after
recompilation?

3. It seems that "import" statement in Python lexer is not treated
with importStyle. Here is a patch:
--- yi-0.6.2.2.orig/src/Yi/Lexer/Python.x       2010-03-24
18:02:26.000000000 +0100
+++ yi-0.6.2.2.mine/src/Yi/Lexer/Python.x       2010-04-24
17:22:44.708405188 +0200
@@ -47,6 +47,8 @@
   | None
   | True

+...@importst = import
+
 @reservedid =
     @builtins
   | and
@@ -66,7 +68,6 @@
   | from
   | global
   | if
-  | import
   | in
   | is
   | lambda
@@ -129,6 +130,7 @@
  $special                                       { c defaultStyle }

  @reservedid                                    { c keywordStyle }
+ @importst                                      { c importStyle  }
  @varid                                         { c defaultStyle }

  @reservedop                                    { c operatorStyle }
-----------------------------------END OF
PATCH------------------------------------
4. I noticed that special characters do not have associated
highlighting mode, as in Vim, so I was quick to workaround, like:
--- yi-0.6.2.2.orig/src/Yi/Lexer/Haskell.x      2010-03-24
18:02:26.000000000 +0100
+++ yi-0.6.2.2.mine/src/Yi/Lexer/Haskell.x      2010-04-24
17:26:47.896405085 +0200
@@ -183,7 +183,7 @@
   ConsIdent      -> typeStyle
   ReservedOp _   -> operatorStyle
   Reserved _     -> keywordStyle
-  Special _      -> defaultStyle
+  Special _      -> builtinStyle
   ConsOperator _ -> operatorStyle
   Operator _     -> operatorStyle
   Comment _      -> commentStyle
-----------------------------------END OF
PATCH------------------------------------
But this is only workaround. Do you believe that it would be
beneficial to add specialStyle to Theme type,
and handle Special token in its own special way, like Vim does?

5. I noticed that :help command gives an empty result [""]. Is it a
place to work on, user documentation?

PS I found a lot of joy in Yi's quick startup. I'd actually consider
porting all my Vim scripts to Yi, but it may yet be hard without an
idea of what lies where from a user's perspective.
--
  Best regards
    Michal

-- 
Yi development mailing list
yi-devel@googlegroups.com
http://groups.google.com/group/yi-devel

Reply via email to