From f2ce7390b8aeb9c95b78dc14f158278b278fd0ed Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sat, 10 May 2008 15:25:33 +1200 Subject: [PATCH] add oPath#StrForCd --- plugin/NERD_tree.vim | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/plugin/NERD_tree.vim b/plugin/NERD_tree.vim index 41b9715..ff3ff12 100644 --- a/plugin/NERD_tree.vim +++ b/plugin/NERD_tree.vim @@ -1188,6 +1188,19 @@ function! s:oPath.StrAbs() dict return resolve(self.Str(1)) endfunction +"FUNCTION: oPath.StrForCd() {{{3 +" +" returns a string that can be used with :cd +" +"Return: +"a string that can be used in the view to represent this path +function! s:oPath.StrForCd() dict + if s:running_windows + return self.StrForOS(0) + else + return self.StrForOS(1) + endif +endfunction "FUNCTION: oPath.StrDisplay() {{{3 " "Returns a string that specifies how the path should be represented as a