seletskiy / vim-over80

Highlight column numbers above 80 character limit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enable indication of 80 character limit for text by using cursorcolumn.

Unfortunately, there are highlighting issues with this approach, in which background syntax coloring is not applying to the charachers with the same column number as 'cursorcolumn'; so the hack was made to disable this highlighting in the case of searching, so matched text located in the 'cursorcolumn' still be visible.

Usage

With simple search command:

nnoremap / :call g:over80#disable_highlight()<CR>/
nnoremap ? :call g:over80#disable_highlight()<CR>?

With vim-over:

nnoremap / :call g:over80#disable_highlight()
    \ <CR>:OverCommandLine /<CR>

nnoremap ? :call g:over80#disable_highlight()
    \ <CR>:OverCommandLine ?<CR>

About

Highlight column numbers above 80 character limit


Languages

Language:Vim Script 100.0%