refactor the t/T mappings for bookmarks
this way feels cleaner
This commit is contained in:
parent
bccd73c8f5
commit
236df49362
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user