]> git.phdru.name Git - dotfiles.git/blobdiff - .vimrc
.vimrc: Fix: expand to the full path for proper comparison
[dotfiles.git] / .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! %