Permalink
Browse files

Make relative path style also relative to home

Update g:Powerline_stl_path_style == 'relative' to be relative to home
(in addition to relative to the cwd) just like the %f statusline item.
  • Loading branch information...
pydave
pydave committed Aug 4, 2012
1 parent 7f53b5c commit c5f325581a8060831557d5259ae48375884c9eb0
Showing with 1 addition and 1 deletion.
  1. +1 −1 autoload/Powerline/Functions.vim
@@ -29,7 +29,7 @@ function! Powerline#Functions#GetFilepath() " {{{
let ret = join(extend([fpath[0]], fpath_shortparts), dirsep) . dirsep
elseif g:Powerline_stl_path_style == 'relative'
" Display a relative path, similar to the %f statusline item
- let ret = fnamemodify(filepath, ':.:h') . dirsep
+ let ret = fnamemodify(filepath, ':~:.:h') . dirsep
elseif g:Powerline_stl_path_style == 'full'
" Display the full path, similar to the %F statusline item
let ret = fnamemodify(filepath, ':h') . dirsep

0 comments on commit c5f3255

Please sign in to comment.