vimcolors

Get color of word under cursor


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.


Solution

  • :echo synIDattr(synIDtrans(synID(line("."), col("."), 1)), "fg")
    

    Read more