Horje
vim get color name at cursor Code Example
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")




Shell

Related
filter match in line sed Code Example filter match in line sed Code Example
sed replace Code Example sed replace Code Example
copy data to kubernetes pod Code Example copy data to kubernetes pod Code Example
sed use match in replacement Code Example sed use match in replacement Code Example
ssh login without passowrd Code Example ssh login without passowrd Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9