Skip to content

Commit

Permalink
error highlight display the [paste] flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Grenfell committed Nov 19, 2008
1 parent 51ed70a commit 07d5ca1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion vimrc
Expand Up @@ -59,7 +59,12 @@ set statusline+=%{StatuslineTabWarning()}
set statusline+=%*

set statusline+=%{StatuslineTrailingSpaceWarning()}
set statusline+=%{&paste?'[paste]':''} "warn if paste is set

"display a warning if &paste is set
set statusline+=%#error#
set statusline+=%{&paste?'[paste]':''}
set statusline+=%*

set statusline+=%= "left/right separator
set statusline+=%{StatuslineCurrentHighlight()}\ \ "current highlight
set statusline+=%c, "cursor column
Expand Down

0 comments on commit 07d5ca1

Please sign in to comment.