Permalink
Browse files

more backwards compat

  • Loading branch information...
1 parent 374a435 commit f5501ff35f501eed2d8ab5e02b8ae43b875d09f5 Carl Hayter committed Nov 30, 2011
Showing with 9 additions and 5 deletions.
  1. +9 −5 vimrc
View
@@ -30,12 +30,16 @@ let mapleader=","
" toggle show invisible chars
nmap <leader>l :set list!<CR>
-if has("multibyte")
- if &encoding == 'utf-8')
- set listchars=tab:▸\ ,eol " ▸:U+25b8 ¬:U+00ac
- endif
+if &encoding == 'latin1'
+ set listchars=tab:~\ ,eol:$ " ▸:U+25b8 ¬:U+00ac
else
- set listchars=tab\ ,eol " ▸:U+25b8 ¬:U+00ac
+ if has("multi_byte")
+ if &encoding == 'utf-8'
+ set listchars=tab:▸\ ,eol " ▸:U+25b8 ¬:U+00ac
+ endif
+ else
+ set listchars=tab\ ,eol " ▸:U+25b8 ¬:U+00ac
+ endif
endif
highlight NonText ctermfg=cyan

0 comments on commit f5501ff

Please sign in to comment.