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

Make relative path style also relative to home #190

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion autoload/Powerline/Functions.vim
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function! Powerline#Functions#GetFilepath() " {{{
let ret = join(extend([fpath[0]], fpath_shortparts), dirsep) . dirsep let ret = join(extend([fpath[0]], fpath_shortparts), dirsep) . dirsep
elseif g:Powerline_stl_path_style == 'relative' elseif g:Powerline_stl_path_style == 'relative'
" Display a relative path, similar to the %f statusline item " 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' elseif g:Powerline_stl_path_style == 'full'
" Display the full path, similar to the %F statusline item " Display the full path, similar to the %F statusline item
let ret = fnamemodify(filepath, ':h') . dirsep let ret = fnamemodify(filepath, ':h') . dirsep
Expand Down