From b41415a3acf0d0ff344362c7ef2ec37049c6781d Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Fri, 20 Jun 2014 11:02:27 +0100 Subject: [PATCH] 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. --- .vimrc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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. -- 2.7.4