How to make vim search wrap more obvious?

前端 未结 2 1697
再見小時候
再見小時候 2021-01-01 18:22

I mostly use vim (console and gvim) full screen on a large monitor. My peripheral vision tends to miss details at the bottom of the screen.

Any suggestions on how to

相关标签:
2条回答
  • 2021-01-01 19:17

    It's hard to change that behavior, you'd have to override all built-in search commands (/, n / N, *, #, etc.) and any custom (plugin) mappings. If this is bothering you, maybe

    :set nowrapscan
    

    is worth a try. You can then still "manually" wrap via gg / G, which will soon go into your muscle memory, yet keep you alert.

    0 讨论(0)
  • 2021-01-01 19:18

    My solution for now is to adjust my color scheme to make the WarningMsg color more obnoxious (in this case, bright red background). Here's the adjusted line from my color scheme file:

    hi WarningMsg ctermfg=white ctermbg=red guifg=White guibg=Red gui=None
    

    I find this makes the search wrap message much more noticeable.

    0 讨论(0)
提交回复
热议问题