X-Git-Url: http://git.iain.cx/?p=profile.git;a=blobdiff_plain;f=.vimrc;h=85b1595c96cebada42a17bc3407c86c8734fe3cc;hp=398e981e8c58bdf0900d8803051886aae7b5dc38;hb=500ba2b170e6f1bfad014c9bca55e19225a9bbe8;hpb=5f647427f7b00bd2d5c3d5a2f91cb906db7ef32c diff --git a/.vimrc b/.vimrc index 398e981..85b1595 100644 --- a/.vimrc +++ b/.vimrc @@ -394,9 +394,9 @@ fun! Extra_Columns(extra, var, ...) "{{{2 if getwinvar(l:i, "&modified") =~ '^\d' let l:n = l:n + 1 - let l:val = 0 - exe "if getwinvar(" . l:i . ", '" . a:var . "') " . l:condition . " | let l:val = 1 | endif" - if l:val + let l:val = 0 + exe "if getwinvar(" . l:i . ", '" . a:var . "') " . l:condition . " | let l:val = 1 | endif" + if l:val exe "let l:windows = '" . l:windows . ":" . l:i . "'" endif endif @@ -733,7 +733,7 @@ fun! Highlight_Signs(...) "{{{2 let l:var = tolower(l:name) let l:sign = substitute(l:sign, '^[A-Za-z]\+', "", "") let l:ascii = matchstr(l:sign, '^:.') - let l:mark = substitute(l:sign, '^\(:.\)*[.-=]', "", "") + let l:mark = substitute(l:sign, '^\(:.\)*[.=-]', "", "") if strlen(l:ascii) let l:ascii = substitute(l:ascii, '^:', "", "") else @@ -787,7 +787,7 @@ fun! Cycle_Signs(resize) "{{{2 let l:sign = substitute(l:sign, ':.', "", "") let l:sign = substitute(l:sign, '=', " texthl=MarkSign text=", "") let l:sign = substitute(l:sign, '\.', " texthl=MarkDot text=", "") - let l:sign = substitute(l:sign, '-', " texthl=MarkLine text=", "") + let l:sign = substitute(l:sign, '-', " texthl=MarkLine linehl=MarkLine text=", "") exe "sign define Mark" . l:sign