]> git.phdru.name Git - dotfiles.git/commitdiff
.vimrc: Fix: `t_SR` is a latest addition
authorOleg Broytman <phd@phdru.name>
Fri, 19 Jul 2019 00:06:32 +0000 (03:06 +0300)
committerOleg Broytman <phd@phdru.name>
Fri, 19 Jul 2019 00:06:32 +0000 (03:06 +0300)
.vimrc

diff --git a/.vimrc b/.vimrc
index 7613cfd26032654e2e1b172b26cf6d4378b8c3ec..a5314d40b1bd0d4d6504fe794bbcf9b52dfc68a2 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -321,7 +321,9 @@ else
    " https://vim.fandom.com/wiki/Change_cursor_shape_in_different_modes
    let &t_EI.=WrapForScreenTmux("\e[2 q") "EI = NORMAL mode (ELSE)
    let &t_SI.=WrapForScreenTmux("\e[6 q") "SI = INSERT mode
-   let &t_SR.=WrapForScreenTmux("\e[4 q") "SR = REPLACE mode
+   if v:version >= 800
+      let &t_SR.=WrapForScreenTmux("\e[4 q") "SR = REPLACE mode
+   endif
 
    "Cursor settings:
    "  1 -> blinking block