From 7ba9017ba0901c03c5337f8df1c6f30d291e2f81 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 26 Jan 2020 21:12:05 +0300 Subject: [PATCH] .vimrc: Fix: expand to the full path for proper comparison --- .vimrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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! % -- 2.39.2