How do i get the color of the word under the cursor?
Working on making my own color schemes and trying to poach others colors without having to look at the source code.
:echo synIDattr(synIDtrans(synID(line("."), col("."), 1)), "fg")
"fg"
foreground color (GUI: color name used to set the color, cterm: color number as a string, term: empty string),"bg"
background color (as with "fg").Read more
:help synIDattr()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With