Sign precedence.
authorIain Patterson <me@iain.cx>
Tue, 28 Jan 2014 18:13:15 +0000 (18:13 +0000)
committerIain Patterson <me@iain.cx>
Mon, 3 Feb 2014 14:09:51 +0000 (14:09 +0000)
Signs listed later take precedence because each sign is drawn over the
top of existing ones.  Rearrange the list such that more important signs
such as the last changed line appear later in the list and hence are
drawn later.

.vimrc

diff --git a/.vimrc b/.vimrc
index c2705ed..6de8038 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -926,12 +926,12 @@ fun! <SID>Cycle_Signs(resize) "{{{2
     " Signs with Type '-' will be highlighted with the MarkLine group.
     " Signs with Type '.' will be highlighted with the MarkDot group.
     " Define the Mark where Symbol is not also the mark name, eg "']".
     " Signs with Type '-' will be highlighted with the MarkLine group.
     " Signs with Type '.' will be highlighted with the MarkDot group.
     " Define the Mark where Symbol is not also the mark name, eg "']".
+    let g:iainsigns = "Less=< Greater=> Left=( Right=) SquareLeft=[ SquareRight=] BraceLeft={ BraceRight=} a-a b-b c-c d-d e-e f-f A-A B-B C-C D-D E-E F-F"
     if Has_Unicode()
     if Has_Unicode()
-      let g:iainsigns = "Dash:'=’ Dot:..• Quote:\"=” Caret:^.ʌ"
+      let g:iainsigns = g:iainsigns . " Quote:\"=” Dash:'=’ Caret:^.ʌ Dot:..•"
     else
     else
-      let g:iainsigns = "Dash=' Dot:..* Quote=\" Caret.^"
+      let g:iainsigns = g:iainsigns . " Quote=\" Dash=' Caret.^ Dot:..*"
     endif
     endif
-    let g:iainsigns = g:iainsigns . " Less=< Greater=> Left=( Right=) SquareLeft=[ SquareRight=] BraceLeft={ BraceRight=} a-a b-b c-c d-d e-e f-f A-A B-B C-C D-D E-E F-F"
   endif
 
   if g:marksigns
   endif
 
   if g:marksigns