Friday, July 23, 2010

Re: Right margin highlighting not working when opening more windows.

On Friday 23 July 2010 10:23:55 Frans Grotepass wrote:
> Hi all,
>
> I enabled right margin highlighting using
>
> :match rightMargin /.\%>100v/
> :highlight rightMargin guifg=black
> :highlight rightMargin guibg=pink
>
> When I open a second window using split or vsplit, then the margin
> highlighting is not active. How can I enable the margin highlighting?
>
Found it...
autocmd WinEnter * if !exists('w:created') | :match rightMargin /.\%>100v/ | endif

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: