mirror of
https://github.com/Yggdroot/indentLine.git
synced 2025-12-16 16:57:10 +08:00
change default indentLine char to "¦" if encoding is utf-8
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
" Script Name: indentLine.vim
|
" Script Name: indentLine.vim
|
||||||
" Version: 1.0.2
|
" Version: 1.0.3
|
||||||
" Last Change: Dec 22, 2012
|
" Last Change: Dec 25, 2012
|
||||||
" Author: Yggdroot <archofortune@gmail.com>
|
" Author: Yggdroot <archofortune@gmail.com>
|
||||||
"
|
"
|
||||||
" Description: To show the indent line
|
" Description: To show the indent line
|
||||||
@@ -12,7 +12,11 @@ let g:loaded_indentLine = 1
|
|||||||
|
|
||||||
if !exists("g:indentLine_char")
|
if !exists("g:indentLine_char")
|
||||||
" | ¦ ┆ │
|
" | ¦ ┆ │
|
||||||
let g:indentLine_char = "|"
|
if &encoding ==? "utf-8"
|
||||||
|
let g:indentLine_char = "¦"
|
||||||
|
else
|
||||||
|
let g:indentLine_char = "|"
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if !exists("g:indentLine_indentLevel")
|
if !exists("g:indentLine_indentLevel")
|
||||||
@@ -35,7 +39,7 @@ function! <SID>InitColor()
|
|||||||
|
|
||||||
if !exists("g:indentLine_color_gui")
|
if !exists("g:indentLine_color_gui")
|
||||||
if &bg ==? "light"
|
if &bg ==? "light"
|
||||||
let gui_color = "Grey"
|
let gui_color = "Grey65"
|
||||||
else
|
else
|
||||||
let gui_color = "Grey40"
|
let gui_color = "Grey40"
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user