mNo edit summary |
JohnBeckett (talk | contribs) (Hide double brace (looks like template), clean, format) |
||
Line 1: | Line 1: | ||
⚫ | |||
− | [[Category:Folding|Hide Folding Markers]] |
||
{{Tip |
{{Tip |
||
|id=241 |
|id=241 |
||
|title="Hide" Folding Markers |
|title="Hide" Folding Markers |
||
− | |created=May 2, 2002 |
+ | |created=May 2, 2002 |
|complexity=intermediate |
|complexity=intermediate |
||
− | |author=Edwin |
+ | |author=Edwin |
|version=6.0 |
|version=6.0 |
||
|rating=2/4 |
|rating=2/4 |
||
|text= |
|text= |
||
− | |||
⚫ | |||
}} |
}} |
||
− | <!-- Has to be here otherwise the Tip template overrides: --> |
||
− | [[Category:VimTip|Hide Folding Markers]] |
||
⚫ | I wanted to start using folding without having to get used to seeing the (default) markers, aka <tt><nowiki>{{{</nowiki></tt> and <tt><nowiki>}}}</nowiki></tt>. So, here are two autocmds that will make them fade to black (bg=black, fg=black). Alternatively, you could use the Ignore highlighting group. |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
− | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
+ | <pre> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
+ | </pre> |
||
⚫ | |||
− | Happy Vimming! |
||
⚫ | |||
==References== |
==References== |
||
− | * |
+ | *{{help|ft-c-syntax}} |
− | * |
+ | *{{help|:syn-containedin}} |
− | *Understanding most of |
+ | *Understanding most of {{help|syntax.txt}} would also be helpful. |
− | * |
+ | *See [[VimTip99]] to determine what highlighting group the cursor is in. |
− | |||
== Comments == |
== Comments == |
||
+ | '''TODO''' Rename tip to remove quotes (a good idea, and then won't need to put sort field in categories). |
||
− | Instead of using black color, consider using the Ignore highlighting group! |
||
− | kgergely--AT--mcl_remove.hu |
||
− | , May 23, 2002 6:29 |
||
---- |
---- |
||
⚫ | |||
− | <!-- parsed by vimtips.py in 0.581121 seconds--> |
Revision as of 12:46, 22 September 2007
Tip: #241 - Hide fold markers
Created: May 2, 2002 Complexity: intermediate Author: Edwin Version: 6.0 Karma: 2/4 Imported from: Tip#241
I wanted to start using folding without having to get used to seeing the (default) markers, aka {{{ and }}}. So, here are two autocmds that will make them fade to black (bg=black, fg=black). Alternatively, you could use the Ignore highlighting group.
au BufRead,BufNewfile * syn match fmrkr '"*{{{\|"*}}}' | \ syn cluster vimCommentGroup contains=fmrkr | \ hi fmrkr term=NONE guibg=black guifg=black \ ctermbg=black ctermfg=black au BufRead,BufNewfile * syn match fmrkr '"*{{{\|"*}}}' \ containedin=vimLineComment contained | \ hi fmrkr term=NONE guibg=black guifg=black \ ctermbg=black ctermfg=black
They both accomplish the same thing, but with different methods, so simply pick one and see those annoying (at least to me) markers fade away.
I just tried it out with vim files, but you can easily modify it for any other filetypes.
References
- :help ft-c-syntax
- :help :syn-containedin
- Understanding most of :help syntax.txt would also be helpful.
- See VimTip99 to determine what highlighting group the cursor is in.
Comments
TODO Rename tip to remove quotes (a good idea, and then won't need to put sort field in categories).