From 890fd7da4a1fae1c0b3d806875c9f50271c47ce8 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 26 May 2019 23:55:25 +1200 Subject: Adjust use of $MYVIMRC and expansion --- autoload/vimrc_reload_filetype.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/vimrc_reload_filetype.vim b/autoload/vimrc_reload_filetype.vim index 6e4d4b8..cc8df98 100644 --- a/autoload/vimrc_reload_filetype.vim +++ b/autoload/vimrc_reload_filetype.vim @@ -1,9 +1,9 @@ " Wrapper function reloads .vimrc and filetypes function! vimrc_reload_filetype#Reload() abort - source + source $MYVIMRC if exists('#filetypedetect#BufRead') doautocmd filetypedetect BufRead endif redraw - echomsg 'Reloaded vimrc: '.expand('') + echomsg 'Reloaded vimrc: '.fnamemodify($MYVIMRC, ':p:~') endfunction -- cgit v1.2.3