aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.vimrc b/.vimrc
index 02264e6..bc4594d 100644
--- a/.vimrc
+++ b/.vimrc
@@ -352,7 +352,7 @@ augroup AutoCommands
" Automatically save file on insert and idle.
autocmd InsertLeave,CursorHold * silent! write
\| silent! exe "!~/.vim/hooks/post-save > /dev/null 2>&1 &"
- \| :echo @% '[filetype=' . &filetype . ']'
+ \| :echo expand('%:t') '[filetype=' . &filetype . ']'
augroup END