From: Iain Patterson Date: Fri, 20 Jun 2014 10:02:27 +0000 (+0100) Subject: Show expandtab in the statusline. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=b41415a3acf0d0ff344362c7ef2ec37049c6781d;p=profile.git Show expandtab in the statusline. If expandtab is unset, which is the default with this .vimrc, show a hard tab indicator after the tab width in the statusline. --- diff --git a/.vimrc b/.vimrc index 4e84299..7a3ca5d 100644 --- a/.vimrc +++ b/.vimrc @@ -773,7 +773,15 @@ endfun "}}}2 " Helper for status line. " Show the size of the tabstop. fun! Show_Tabstop() "{{{2 - return &ts + if &et + return &ts + else + if Has_Unicode() + return &ts . "↹" + else + return &ts . "\\" + fi + endif endfun "}}}2 " Helper for status line.