From 1a121337dd1e8d7ec6c44c068cb147f4e9b896ef Mon Sep 17 00:00:00 2001 From: Jason Franklin Date: Fri, 11 Aug 2017 08:33:51 -0400 Subject: [PATCH] Clean up the script header in "path.vim" Some code was reorganized and comments were written/rewritten. --- lib/nerdtree/path.vim | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/lib/nerdtree/path.vim b/lib/nerdtree/path.vim index 4d608c7..79dd483 100644 --- a/lib/nerdtree/path.vim +++ b/lib/nerdtree/path.vim @@ -1,9 +1,16 @@ -" we need to use this number many times for sorting... so we calculate it only -" once here -let s:NERDTreeSortStarIndex = index(g:NERDTreeSortOrder, '*') - +" ============================================================================ " CLASS: Path -" ============================================================ +" +" The Path class provides an abstracted representation of a file system +" pathname. Various operations on pathnames are provided and a number of +" representations of a given path name can be accessed here. +" ============================================================================ + + +" This constant is used throughout this script for sorting purposes. +let s:NERDTreeSortStarIndex = index(g:NERDTreeSortOrder, '*') +lockvar s:NERDTreeSortStarIndex + let s:Path = {} let g:NERDTreePath = s:Path