refactor the t/T mappings for bookmarks

this way feels cleaner
This commit is contained in:
Martin Grenfell 2008-07-06 16:26:56 +12:00
parent bccd73c8f5
commit 236df49362

View File

@ -3223,7 +3223,8 @@ function! s:OpenInNewTab(stayCurrentTab)
let bookmark = s:GetSelectedBookmark() let bookmark = s:GetSelectedBookmark()
if bookmark != {} if bookmark != {}
if bookmark.path.isDirectory if bookmark.path.isDirectory
exec "tabnew +NERDTreeFromBookmark\\ " . bookmark.name tabnew
call s:InitNerdTree(bookmark.name)
else else
exec "tabedit " . bookmark.path.StrForEditCmd() exec "tabedit " . bookmark.path.StrForEditCmd()
endif endif