On Thu 19-Oct-06 10:59am -0600, Jeff Lanzarotta wrote:

> I have the following in my vimrc,
>
> --------
> " This shows spaces and tabs characters. Visual Whitespace.
> set listchars=tab:»·,trail:·
> set list
> --------
>
> That all work well and good, but I would like to disable this display
> of visual white space temporarily, do something, and then reset it back
> to what I had. Is there a way to do this?

You can toggle back and forth with:

    :se invlist

This can be placed in a map like this:

    nm <silent> <leader>l :se invlist list?<CR>

where "invlist" will toggle the 'list' option and "list?"
will display the new state.

For help on ":se {option}?" and ":se inv{option}" see:

    :h set-option

-- 
Best regards,
Bill

Reply via email to