Thanks for all the suggestions. They helped out... If there a way to
check and see if the listchar is actually set or not?
In my script, I now turn off the display with 'set invlist list?', but
I do not want to turn it back on if it was not previously set...
--- Bill McCarthy <[EMAIL PROTECTED]> wrote:
> 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
>
>