On Thursday, October 24, 2013 5:56:40 AM UTC-5, Edward K. Ream wrote: Matt created a file that causes vim to color Leo sentinels "softly", thus > mitigating their annoyance to non-Leonistas: > https://groups.google.com/forum/#!msg/leo-editor/ytkZY8n25J8/eYhaYQHFyh0J >
Here is the screenshot: https://11707503125000652521.googlegroups.com/attach/1dcac501615a8879/vim-leo-filetype.png?part=2&view=1&vt=ANaJVrEwkk9m7-hafkaMO48Rdlc8ERCrhmh7ww47sNgWBGT8EXdhD4SxzWegv9GyvC0Kyzd3fI9ROM-6Xi1SXFmB7Od_ql7V3C_8XKiY8Wfux5sbhzUihZM Here is the file, filetype.vim, itself: QQQQQ "@+leo-ver=5-thin "@+node:maphew.20101201124731.3123: * @file filetype.vim "@@language vim " Leo editor additions " to activate change save this file as ~/.vim/after/filetype.vim " --- Leo directive --- " We assume anything with one of @@, @+, @- near line start is a leo headline/directive. " Examples: " #@+leo-ver=5-thin " #@+node:johndoe.20100928224755.1557: * @file foobar.py " #@@first " #@+<<docstring> > " " Search pattern break down: " " ^ beginning of line " . any single character " \{,4} 0 to 4 of preceeding pattern (any single character in this case) " \zs Set start of match here (http://vimhelp.appspot.com/pattern.txt.html#%2F\zs) " @[@\-+] match any of: @@, @+, @- " .* include everything after, to end of line " " (better but too hard(?): match only if preceding character is a known comment delimeter) syn match leoHeadline "^.\{,4}\zs@[@\-+].*" containedin=pythonComment,vimComment,vimMtchComment,vimLineComment,perlComment,perlDATA,perlPOD,vimScriptDelim,rubyRegexpComment,rubyComment,rubyDocumentation,rubyData,htmlCommentPart,htmlComment,javaScriptLineComment,javaScriptComment,htmlCssStyleComment,vbComment,vbLineNumber,cssComment " why can't we use plain ol 'Comment' group instead of 'pythonComment' etc. ? " why did this stop this working with html files? " Resume normal emphasis within leoHeadline after last asterisk (*) " Idea is to keep the node's name (headline contents) prominent syn match Comment "\* .*$"hs=s+1 containedin=leoHeadline highlight leoHeadline guifg=grey " Wishlist: " - background highlight entire node line. Idea is to still communicate or delineate the Leo node boundaries, but hide the noisy stuff. As is now the headline text kind of floats in the middle of nowhere. " - would rather the headline colour say 'x% lighter than comment colour, in same hue'. This would be more adaptable to different colour schemes. " "@-leo QQQQQ Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/groups/opt_out.
