+" Show file encoding
+func! Show_Encoding() "{{{2
+ let l:enc = &fenc
+ if l:enc == ""
+ let l:enc = &enc
+ if l:enc == ""
+ return ""
+ endif
+ let l:enc = '(' . l:enc . ')'
+ endif
+
+ if has("multi_byte")
+ if &bomb
+ if Has_Unicode()
+ let l:enc = l:enc . "☻"
+ else
+ let l:enc = l:enc . "@"
+ endif
+ endif
+ endif
+
+ return l:enc . ","
+endfun "}}}2
+
+" Helper for status line.