Answers for "vim cursorcolum color"

0

vim cursorcolum color

:highlight CursorColumn ctermbg=darkmagenta
Posted by: Guest on January-21-2022
0

vim get color name at cursor

# Returns the foreground color ID of the character at cursor. 
# Replace "fg" with "bg" to get the background color.

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

#============================== SIDE-NOTE ===============================
# You can "alias" it in your vimrc for simpler use in the future like so:

cnoreabbrev GetFgColor echo synIDattr(synIDtrans(synID(line("."), 
		 col("."), 1)), "fg")
Posted by: Guest on December-02-2020

Browse Popular Code Answers by Language