Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Commit

Permalink
Make relative path style also relative to home
Browse files Browse the repository at this point in the history
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.

Closes #190.
  • Loading branch information
pydave authored and Lokaltog committed Aug 7, 2012
1 parent ac420bb commit 67ea41e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/Powerline/Functions.vim
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,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
Expand Down

0 comments on commit 67ea41e

Please sign in to comment.