From: Oleg Broytman Date: Sun, 26 Jan 2020 18:12:05 +0000 (+0300) Subject: .vimrc: Fix: expand to the full path for proper comparison X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=7ba9017ba0901c03c5337f8df1c6f30d291e2f81;p=dotfiles.git .vimrc: Fix: expand to the full path for proper comparison --- diff --git a/.vimrc b/.vimrc index 8e88841..750786d 100644 --- 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! %