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
Narrow region plugin slows down leader command for NERDTree #620
Comments
Do you want me to create a PR for that? :) |
Sure, what mapping you propose for narrow region? |
Maybe |
or |
Ok, then ;) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not sure what changed but a while ago opening/closing NERDTree with
<leader>n
became much slower.Yesterday I tracked this down. The narrow region plugin defines a leader command
<leader>nr
. When that isn't there Vim can react to the<leader>n
command as soon as the "n" is typed. With the narrow region command there Vim waits a while after<leader>n
is typed to see if you will type an "r".I've started avoiding this issue by adding:
nunmap <leader>nr
to my gvimrc.after. This works for me because I use
<leader>n
all the time, and I never use<leader>nr
.I think Janus could be improved by providing a solution to this "out of the box" so that the NERDTree
<leader>n
command responds without delay. My suggestion would be to map 'narrow region' to a leader command that does not start with 'n'.The text was updated successfully, but these errors were encountered: