mirror of
https://github.com/preservim/nerdtree.git
synced 2025-11-08 11:23:48 -05:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a856622f0c | ||
|
|
ce79c243a3 | ||
|
|
e1b369f34e | ||
|
|
0a73777381 | ||
|
|
176b551af0 |
@@ -33,6 +33,7 @@ CONTENTS *NERDTree-contents*
|
||||
6.The Author..............................|NERDTreeAuthor|
|
||||
7.Changelog...............................|NERDTreeChangelog|
|
||||
8.Credits.................................|NERDTreeCredits|
|
||||
9.License.................................|NERDTreeLicense|
|
||||
|
||||
==============================================================================
|
||||
1. Intro *NERDTree*
|
||||
@@ -846,6 +847,7 @@ fridge for later ;)
|
||||
- fixed screen jumping bug with when &scrolloff != 0
|
||||
- fixed some bugs with copying nodes
|
||||
- other random fixes
|
||||
- change license to wtfpl
|
||||
|
||||
2.9.0
|
||||
|
||||
@@ -1083,3 +1085,9 @@ set the NERD tree buffers filetype to 'nerdtree'
|
||||
|
||||
Thanks to Piotr Czachur for all his suggestions and testing for the bookmarks
|
||||
feature.
|
||||
|
||||
==============================================================================
|
||||
9. License *NERDTreeLicense*
|
||||
|
||||
The NERD tree is released under the wtfpl.
|
||||
See http://sam.zoy.org/wtfpl/COPYING.
|
||||
|
||||
@@ -1,7 +1,16 @@
|
||||
" vim global plugin that provides a nice tree explorer
|
||||
" Last Change: 17 May 2008
|
||||
" Maintainer: Martin Grenfell <martin_grenfell at msn dot com>
|
||||
let s:NERD_tree_version = '2.10.0rc1'
|
||||
" ============================================================================
|
||||
" File: NERD_tree.vim
|
||||
" Description: vim global plugin that provides a nice tree explorer
|
||||
" Maintainer: Martin Grenfell <martin_grenfell at msn dot com>
|
||||
" Last Change: 17 June, 2008
|
||||
" License: This program is free software. It comes without any warranty,
|
||||
" to the extent permitted by applicable law. You can redistribute
|
||||
" it and/or modify it under the terms of the Do What The Fuck You
|
||||
" Want To Public License, Version 2, as published by Sam Hocevar.
|
||||
" See http://sam.zoy.org/wtfpl/COPYING for more details.
|
||||
"
|
||||
" ============================================================================
|
||||
let s:NERD_tree_version = '2.10.0'
|
||||
|
||||
" SECTION: Script init stuff {{{1
|
||||
"============================================================
|
||||
@@ -1500,11 +1509,21 @@ function! s:ReadBookmarks()
|
||||
if filereadable(g:NERDTreeBookmarksFile)
|
||||
let bookmarks = s:GetBookmarks()
|
||||
let bookmarkStrings = readfile(g:NERDTreeBookmarksFile)
|
||||
let invalidBookmarksFound = 0
|
||||
for i in bookmarkStrings
|
||||
let key = substitute(i, '^\(\w.\{-}\) .*$', '\1', '')
|
||||
let path = substitute(i, '^\w.\{-} \(.*\)$', '\1', '')
|
||||
let bookmarks[key] = s:oPath.New(path)
|
||||
let key = substitute(i, '^\(\w\{-}\) .*$', '\1', '')
|
||||
let path = substitute(i, '^\w\{-} \(.*\)$', '\1', '')
|
||||
|
||||
try
|
||||
let bookmarks[key] = s:oPath.New(path)
|
||||
catch /NERDTree.Path.InvalidArguments/
|
||||
let invalidBookmarksFound += 1
|
||||
endtry
|
||||
endfor
|
||||
if invalidBookmarksFound
|
||||
call s:Echo(invalidBookmarksFound . " invalid bookmarks were read and discarded")
|
||||
call s:WriteBookmarks()
|
||||
endif
|
||||
endif
|
||||
endfunction
|
||||
" Function: s:TreeExistsForTab() {{{2
|
||||
|
||||
Reference in New Issue
Block a user