]> git.phdru.name Git - dotfiles.git/commitdiff
.vimrc: Fix: expand to the full path for proper comparison
authorOleg Broytman <phd@phdru.name>
Sun, 26 Jan 2020 18:12:05 +0000 (21:12 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 26 Jan 2020 18:12:05 +0000 (21:12 +0300)
.vimrc

diff --git a/.vimrc b/.vimrc
index 8e8884172805f4014f01f25446dc241e559543b5..750786dd4e59e2ce9a13cda0b78c96940cdd9a94 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -781,7 +781,7 @@ if has("spell")
    autocmd BufReadPost * call SetupSpell()
 
    function! SaveSpell()
-      if expand('%') == expand('~/.vim/spell/en.ascii.add')
+      if expand('%:p') == expand('~/.vim/spell/en.ascii.add')
          mkspell! -ascii %
       else
          mkspell! %