Git Product home page Git Product logo

lucius's People

Contributors

escherba avatar fmcgough avatar jonathanfilip avatar keithhub avatar quietmisdreavus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lucius's Issues

"for item" issue

Hi Jonathan.

Thank you for the lucius!
After version 8.0 i have a small problem (E706):

"lucius.vim" 749L, 28431C
Обнаружена ошибка при обработке /home/lyokha/.vim/colors/lucius.vim:
строка 255:
E706: Variable type mismatch for: item
строка 636:
E706: Variable type mismatch for: item
строка 641:
E706: Variable type mismatch for: item
строка 647:
E706: Variable type mismatch for: item
строка 655:
E706: Variable type mismatch for: item
строка 666:
E706: Variable type mismatch for: item
строка 670:
E706: Variable type mismatch for: item
строка 682:
E706: Variable type mismatch for: item
Press ENTER or type command to continue

(there is some russian in the message, it says There is an error in ... )

After some investigations i found that i use "for item" in global area in some of my script, and lucius now does same! ":help for" says that it should give E706. If "for item" had been defined in a function scope i would not notice an error. The very simple and correct solution is to use "for s:item" in global area (this is actual for my script too!).

Here is a very simple patch (just replacing all item with s:item) that fixes the problem for me:

--- lucius.vim  2012-08-24 11:51:26.234581954 +0400
+++ lucius.vim.new  2012-08-24 13:58:55.358014971 +0400
@@ -252,8 +252,8 @@
             \ ]

 " Clear default settings
-for item in s:normal_items + s:bold_items + s:underline_items + s:undercurl_items
-    exec "hi " . item . " guifg=NONE guibg=NONE gui=none"
+for s:item in s:normal_items + s:bold_items + s:underline_items + s:undercurl_items
+    exec "hi " . s:item . " guifg=NONE guibg=NONE gui=none"
                 \ . " ctermfg=NONE ctermbg=NONE cterm=none term=none"
 endfor

@@ -633,27 +633,27 @@
 " Text Emphasis:
 " ============================================================================

-for item in s:normal_items
-    exec "hi " . item . " gui=none cterm=none term=none"
+for s:item in s:normal_items
+    exec "hi " . s:item . " gui=none cterm=none term=none"
 endfor

 if s:use_bold == 1
-    for item in s:bold_items
-        exec "hi " . item . " gui=bold cterm=bold term=none"
+    for s:item in s:bold_items
+        exec "hi " . s:item . " gui=bold cterm=bold term=none"
     endfor
 endif

 if s:use_underline == 1
-    for item in s:underline_items
-        exec "hi " . item . " gui=underline cterm=underline term=none"
+    for s:item in s:underline_items
+        exec "hi " . s:item . " gui=underline cterm=underline term=none"
     endfor
-    for item in s:undercurl_items
-        exec "hi " . item . " cterm=underline"
+    for s:item in s:undercurl_items
+        exec "hi " . s:item . " cterm=underline"
     endfor
 endif

-for item in s:undercurl_items
-    exec "hi " . item . " gui=undercurl term=none"
+for s:item in s:undercurl_items
+    exec "hi " . s:item . " gui=undercurl term=none"
 endfor


@@ -663,12 +663,12 @@

 call s:AddCterm("Normal")

-for item in s:normal_items + s:bold_items + s:underline_items
-    call s:AddCterm(item)
+for s:item in s:normal_items + s:bold_items + s:underline_items
+    call s:AddCterm(s:item)
 endfor

-for item in s:undercurl_items
-    call s:AddSpCterm(item)
+for s:item in s:undercurl_items
+    call s:AddSpCterm(s:item)
 endfor


@@ -679,12 +679,12 @@
 let s:alternative_bold_items = ["Identifier", "PreProc", "Statement",
             \ "Special", "Constant", "Type"]

-for item in s:alternative_bold_items
-    exec "let s:temp_gui_fg = synIDattr(synIDtrans(hlID('" . item .
+for s:item in s:alternative_bold_items
+    exec "let s:temp_gui_fg = synIDattr(synIDtrans(hlID('" . s:item .
                 \ "')), 'fg', 'gui')"
-    exec "let s:temp_cterm_fg = synIDattr(synIDtrans(hlID('" . item .
+    exec "let s:temp_cterm_fg = synIDattr(synIDtrans(hlID('" . s:item .
                 \ "')), 'fg', 'cterm')"
-    exec "hi B" . item . " guifg=" . s:temp_gui_fg . " ctermfg=" .
+    exec "hi B" . s:item . " guifg=" . s:temp_gui_fg . " ctermfg=" .
                 \ s:temp_cterm_fg . " gui=bold cterm=bold term=none"
 endfor

Thank you, Alexey.

I'd like to make a mutt theme

Hi! Lucius is my favorite color scheme. I always come back to it. I have it on almost everything use except for mutt. I was wondering if you were working on a mutt color scheme for Lucius, and if not I was hoping to contribute one to this repo.

Screenshot?

Would be nice to have some screenshots in the README.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.