Skip to content

Commit

Permalink
refactor the t/T mappings for bookmarks
Browse files Browse the repository at this point in the history
this way feels cleaner
  • Loading branch information
Martin Grenfell committed Jul 7, 2008
1 parent bccd73c commit 236df49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/NERD_tree.vim
Expand Up @@ -3223,7 +3223,8 @@ function! s:OpenInNewTab(stayCurrentTab)
let bookmark = s:GetSelectedBookmark()
if bookmark != {}
if bookmark.path.isDirectory
exec "tabnew +NERDTreeFromBookmark\\ " . bookmark.name
tabnew
call s:InitNerdTree(bookmark.name)
else
exec "tabedit " . bookmark.path.StrForEditCmd()
endif
Expand Down

0 comments on commit 236df49

Please sign in to comment.