Skip to content

Avi-D-coder/highlight-inherit.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Extend/Inherit highlight groups

highlight_inherit#write({String},   {Dict},    {String})
highlight_inherit#write(new_name, options_dict, inherit)

Creates/Overrides highlight groups new_name from inherit adding/overwriting options in options_dict.

Example usage

:call highlight_inherit#write("Conditional", {'gui':'bold,italic'}, "Conditional") Makes conditionals bold and italic, while leaving color unchanged.

Helper functions

highlight_inherit#getOpts({String})
highlight_inherit#getOpts(group)

Returns a dictionary of options associated with highlight group named {String}. E.g.: `{'gui': 'italic,bold', 'ctermfg': '11'} note: this function will recurse down highlight links. A recursive version of vi.stackexchange.com/a/12305

highlight_inherit#SynGroups() echomsgs highlight groups and links under cursor. " Amalgamated from answers on stackoverflow

About

Extend/Inherit highlight groups

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published