Don't use cursor sign if cursorline is active.
authorIain Patterson <me@iain.cx>
Wed, 29 Jan 2014 13:36:52 +0000 (13:36 +0000)
committerIain Patterson <me@iain.cx>
Mon, 3 Feb 2014 14:09:58 +0000 (14:09 +0000)
The sign is a poor relation as it isn't updated in real time.  Hide it
when cursorline is available.

.vimrc

diff --git a/.vimrc b/.vimrc
index 29b0b6d..ad1d7e3 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -934,9 +934,15 @@ fun! <SID>Cycle_Signs(resize) "{{{2
     " 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()
-      let g:iainsigns = g:iainsigns . " Quote:\"=” Dash:'=’ Caret:^.ʌ Dot:..• Cursor:o>▶"
+      let g:iainsigns = g:iainsigns . " Quote:\"=” Dash:'=’ Caret:^.ʌ Dot:..•"
+      if version < "704"
+        let g:iainsigns = g:iainsigns ." Cursor:o>▶"
+      endif
     else
-      let g:iainsigns = g:iainsigns . " Quote=\" Dash=' Caret.^ Dot:..* Cursor>o "
+      let g:iainsigns = g:iainsigns . " Quote=\" Dash=' Caret.^ Dot:..*"
+      if version < "704"
+        let g:iainsigns = g:iainsigns ." Cursor>o"
+      endif
     endif
   endif