简体   繁体   中英

How do I highlight keyword in vim in terminal?

I wanna highlight boost keyword in my vim

For example, the word 'timer' is in white in original file. And I add the following in my cpp.vim

hi def Boost_keyword term=italic cterm=italic gui=italic guifg=Magenta ctermfg=Magenta

Now it's in magenta in gvim, but not in terminal.

My question,
For GVim, keyword 'timer' is okay.
But how do I change in terminal, same with Gvim?

在此输入图像描述在此输入图像描述

Remove

 term=italic cterm=italic

And I expect this will work. Italics and terminals rarely mix.

Also:

Use only one of "cterm=" OR "ctermfg=" OR "ctermbg="

-- :help highlight-cterm

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM