Redoubts
Redoubts

Reputation: 843

Vim less.sh settings won't import properly

On my system, I've aliased less to vim's less.sh macro (let's call it vless). For some reason, this macro doesn't fully import the line-highlighting settings in my .vimrc .

vless turns on highlighting, but uses underlining instead of bg+bold. In comparison, vim does exactly what I want. See pictures below. How do I fix this?

vimrc in vim: vimrc in vim

Same file in (v)less: vimrc in less

Upvotes: 0

Views: 290

Answers (1)

FDinoff
FDinoff

Reputation: 31439

Try using vimpager which is the successor to less.sh.


If you actually wanted to change the highlighting after less.sh did its own highlighting you could create the file ~/.vim/after/colors/<colorscheme_name>.vim with the following contents.

hi CursorLine term=bold cterm=bold ctermbg=Black

This should be sourced after less.sh does its own configuration.

Upvotes: 2

Related Questions