]> git.phdru.name Git - dotfiles.git/blobdiff - .vimrc
.gitconfig: Comment out alias `git git`
[dotfiles.git] / .vimrc
diff --git a/.vimrc b/.vimrc
index 7613cfd26032654e2e1b172b26cf6d4378b8c3ec..4bb96bc4ba1914ff8461dd3f50d67f58d5a8911d 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
@@ -770,6 +772,15 @@ if has("spell")
       endif
    endfunction
    autocmd BufReadPost * call SetupSpell()
+
+   function! SaveSpell()
+      if expand('%') == expand('~/.vim/spell/en.ascii.add')
+         mkspell! -ascii %
+      else
+         mkspell! %
+      endif
+   endfunction
+   autocmd BufWritePost ~/.vim/spell/*.add call SaveSpell()
 endif