better statusline and .md highlight
This commit is contained in:
@@ -29,7 +29,7 @@ color settings:
|
|||||||
|
|
||||||
```
|
```
|
||||||
0: #000000 (snowhite)
|
0: #000000 (snowhite)
|
||||||
0: #101010 (pitchblack)
|
0: #101010 (pitchblack)
|
||||||
1: #c00000
|
1: #c00000
|
||||||
2: #00c000
|
2: #00c000
|
||||||
3: #c0c000
|
3: #c0c000
|
||||||
|
|||||||
@@ -72,8 +72,7 @@ augroup END
|
|||||||
|
|
||||||
augroup trailingwhite
|
augroup trailingwhite
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd BufWinEnter,InsertLeave * if &ft != 'markdown'
|
autocmd BufWinEnter,InsertLeave * match TrailingWhite
|
||||||
\ | match TrailingWhite '\v\s+$' | endif
|
|
||||||
autocmd InsertEnter * match TrailingWhite ''
|
autocmd InsertEnter * match TrailingWhite ''
|
||||||
augroup END
|
augroup END
|
||||||
"}}}
|
"}}}
|
||||||
|
|||||||
@@ -14,9 +14,9 @@ set statusline=
|
|||||||
set statusline+=%w%q%h "Is it help/preview/loclist?
|
set statusline+=%w%q%h "Is it help/preview/loclist?
|
||||||
set statusline+=%{GetGitStatus()} "Is it git?
|
set statusline+=%{GetGitStatus()} "Is it git?
|
||||||
set statusline+=\
|
set statusline+=\
|
||||||
set statusline+=%f "What's the filename?
|
set statusline+=%.40f "What's the filename?
|
||||||
set statusline+=%m%r "Is it modifiable/readonly?
|
set statusline+=%m%r "Is it modifiable/readonly?
|
||||||
set statusline+=[%LL] "What are total lines?
|
set statusline+=[%LL] "How many lines?
|
||||||
set statusline+=%= "Go to the right ---->
|
set statusline+=%= "Go to the right ---->
|
||||||
set statusline+=\
|
set statusline+=\
|
||||||
set statusline+=%< "Trim here
|
set statusline+=%< "Trim here
|
||||||
@@ -24,6 +24,6 @@ set statusline+=%{&fileencoding?&fileencoding:&encoding}
|
|||||||
set statusline+=\|%{&fileformat} "Unix/Win?
|
set statusline+=\|%{&fileformat} "Unix/Win?
|
||||||
set statusline+=%y "What's the type of the file?
|
set statusline+=%y "What's the type of the file?
|
||||||
set statusline+=\
|
set statusline+=\
|
||||||
set statusline+=<x%02B> "Character under cursor...
|
set statusline+=x%02B "Character under cursor...
|
||||||
set statusline+=@%2c "at column
|
set statusline+=\ @%-2c "at column
|
||||||
set statusline+=\
|
set statusline+=\
|
||||||
|
|||||||
Reference in New Issue
Block a user