|
@@ -1,5 +1,5 @@
|
|
|
"============================================================================
|
|
"============================================================================
|
|
|
-" Copyright: Copyright (c) 2001-2023, Jeff Lanzarotta
|
|
|
|
|
|
|
+" Copyright: Copyright (c) 2001-2024, Jeff Lanzarotta
|
|
|
" All rights reserved.
|
|
" All rights reserved.
|
|
|
"
|
|
"
|
|
|
" Redistribution and use in source and binary forms, with or
|
|
" Redistribution and use in source and binary forms, with or
|
|
@@ -36,7 +36,7 @@
|
|
|
" Name Of File: bufexplorer.vim
|
|
" Name Of File: bufexplorer.vim
|
|
|
" Description: Buffer Explorer Vim Plugin
|
|
" Description: Buffer Explorer Vim Plugin
|
|
|
" Maintainer: Jeff Lanzarotta (my name at gmail dot com)
|
|
" Maintainer: Jeff Lanzarotta (my name at gmail dot com)
|
|
|
-" Last Changed: Monday, 01 May 2023
|
|
|
|
|
|
|
+" Last Changed: Thursday, 30 May 2024
|
|
|
" Version: See g:bufexplorer_version for version number.
|
|
" Version: See g:bufexplorer_version for version number.
|
|
|
" Usage: This file should reside in the plugin directory and be
|
|
" Usage: This file should reside in the plugin directory and be
|
|
|
" automatically sourced.
|
|
" automatically sourced.
|
|
@@ -74,7 +74,7 @@ endif
|
|
|
"1}}}
|
|
"1}}}
|
|
|
|
|
|
|
|
" Version number
|
|
" Version number
|
|
|
-let g:bufexplorer_version = "7.4.26"
|
|
|
|
|
|
|
+let g:bufexplorer_version = "7.4.27"
|
|
|
|
|
|
|
|
" Plugin Code {{{1
|
|
" Plugin Code {{{1
|
|
|
" Check for Vim version {{{2
|
|
" Check for Vim version {{{2
|
|
@@ -770,12 +770,12 @@ function! s:BuildBufferList()
|
|
|
" Are we to split the path and file name?
|
|
" Are we to split the path and file name?
|
|
|
if g:bufExplorerSplitOutPathName
|
|
if g:bufExplorerSplitOutPathName
|
|
|
let type = (g:bufExplorerShowRelativePath) ? "relativepath" : "path"
|
|
let type = (g:bufExplorerShowRelativePath) ? "relativepath" : "path"
|
|
|
- let path = buf[type]
|
|
|
|
|
|
|
+ let path = substitute( buf[type], $HOME."\\>", "~", "" )
|
|
|
let pad = (g:bufExplorerShowUnlisted) ? s:allpads.shortname : s:listedpads.shortname
|
|
let pad = (g:bufExplorerShowUnlisted) ? s:allpads.shortname : s:listedpads.shortname
|
|
|
let line .= buf.shortname." ".strpart(pad.path, s:StringWidth(buf.shortname))
|
|
let line .= buf.shortname." ".strpart(pad.path, s:StringWidth(buf.shortname))
|
|
|
else
|
|
else
|
|
|
let type = (g:bufExplorerShowRelativePath) ? "relativename" : "fullname"
|
|
let type = (g:bufExplorerShowRelativePath) ? "relativename" : "fullname"
|
|
|
- let path = buf[type]
|
|
|
|
|
|
|
+ let path = substitute( buf[type], $HOME."\\>", "~", "" )
|
|
|
let line .= path
|
|
let line .= path
|
|
|
endif
|
|
endif
|
|
|
|
|
|