From 4a2e7c49a02b96d97a2ca22af1e58bd522b81a83 Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Tue, 17 Apr 2018 18:59:30 +0100 Subject: [PATCH] substitute ~ for home directory in file paths --- vimrc.d/statusline.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vimrc.d/statusline.vim b/vimrc.d/statusline.vim index 39252f6..36f5081 100644 --- a/vimrc.d/statusline.vim +++ b/vimrc.d/statusline.vim @@ -142,7 +142,7 @@ function! GetStatus(isactive) "{{{ let l:statusline .= '%#InterfaceSignWarning# %R ' else let l:statusline.='%#StatusLineDir# ' - let l:statusline.="%{expand('%:p:h')}/" + let l:statusline.="%{fnamemodify(expand('%:p:h'),':~')}/" let l:statusline.='%#StatusLineFile#' let l:statusline.="%{expand('%:t:r')}"