On Wed, Jul 15, 2009 at 4:19 AM, TheLonelyStar wrote:
>
>
> Hi,
>
> I have some startup function, which dis- or enables "expandtab" depending on
> some scan of the file.
> I know I can change the statusbar by setting "statusbar".
> Can I somehow show "tab" is expandtab is disabled or "space" if expandtab is
> enabled in the statusbar?
Something like
:set statusline+=[%{&expandtab?'space':'tab'}]
should do the trick.
~Matt
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---