ErichDonGubler / vim-sublime-monokai

Vim Monokai color scheme that tries to be as faithful as possible to Sublime's Monokai syntax highlighting
MIT License
151 stars 99 forks source link

IncSearch highlighting missing #10

Closed diresi closed 5 years ago

diresi commented 5 years ago

I just applied the hilighting for Search to the IncSearch group because the first incremental match wasn't highlighted at all. It seems to work with this patch:

diff --git a/colors/sublimemonokai.vim b/colors/sublimemonokai.vim
index d3d52f173ab4..ddc3767679f7 100644
--- a/colors/sublimemonokai.vim
+++ b/colors/sublimemonokai.vim
@@ -142,7 +142,7 @@ hi! link Directory SublimeAqua
 call s:h('ErrorMsg',     { 'fg': s:black,       'bg': s:red,      'format': 'standout'     })
 hi! link FoldColumn SublimeDarkBlack
 call s:h('Folded',       { 'fg': s:warmgrey,    'bg': s:darkblack                          })
-call s:h('Incsearch',    {                                                                 })
+call s:h('IncSearch',    { 'format': 'reverse,underline'                                   })
 call s:h('LineNr',       { 'fg': s:grey,        'bg': s:lightblack                         })
 call s:h('MatchParen',   { 'format': 'underline'                                           })
 hi! link ModeMsg SublimeYellow

Thanks for the (otherwise) nice theme!

jiangfangxin commented 5 years ago

Thank you for solving this problem. I modify the theme like what you said. It works. Thank you!:smile:

ErichDonGubler commented 5 years ago

Interesting...I haven't run into an issue with the first highlight not being matched! I can't see a difference in behavior with the suggested snippet.

Since this seems to have resolved an issue in at least your and @jiangfangxin's cases, I think I'll just apply the suggested fix. :)