Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ":clearjumps" in new NERDTree windows #844

Merged
merged 1 commit into from
May 29, 2018

Conversation

lifecrisis
Copy link
Contributor

See commit message.

Using the ":clearjumps" command wipes out the jump list for the
current window.  This means that the user can't inadvertently jump
out of the NERDTree buffer while using the NERDTree window (i.e., by
using "<C-O>").
@PhilRunninger
Copy link
Member

I'm not sure about this. Looking at @juanibiapina's comments in #250, there may be cases where jumping out of NERDTree with <C-O> is desirable, particularly when you use :e .. If I've misunderstood either of these scenarios, let me know.

@lifecrisis
Copy link
Contributor Author

Hey, @PhilRunninger.

This only affects when a new window is created, not when a new NERDTree buffer is created in the current window. So, :edit . will still allow you to jump back out of the NERDTree buffer.

This only has to do with creating a sidebar-style NERDTree window.

Copy link
Member

@PhilRunninger PhilRunninger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@lifecrisis lifecrisis merged commit 0788027 into preservim:master May 29, 2018
@lifecrisis lifecrisis deleted the clearjumps branch May 29, 2018 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants