6

Currently, my vimrc has

set cursorline
hi CursorLine cterm=underline ctermbg=none ctermfg=none

I want to be set cterm to both underline and bold

0

1 Answer 1

26

Vim has excellent help files.

I had no idea what the answer was to this question but I found it in one minute:

  1. :h cterm (don't hit Enter yet)
  2. Tab for auto-completion to see some choices
  3. highlight-cterm sounds promising so tab over to it and hit Enter
  4. Hmm, cterm={attr-list} and See above for the description of attr-list
  5. That last "attr-list" is highlighted as a tag so put cursor over it and hit Ctrl+]

And voila..

attr-list is a comma separated list (without spaces) of the following items (in any order):
        bold
        underline
        ..etc..

So cterm=underline,bold is the answer.

Vim has excellent help files.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.