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

Narrow region plugin slows down leader command for NERDTree #620

Closed
DanS opened this issue Jun 7, 2015 · 5 comments
Closed

Narrow region plugin slows down leader command for NERDTree #620

DanS opened this issue Jun 7, 2015 · 5 comments

Comments

@DanS
Copy link

DanS commented Jun 7, 2015

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'.

@dolohow
Copy link
Contributor

dolohow commented Sep 13, 2015

Do you want me to create a PR for that? :)

@kalbasit
Copy link
Member

Sure, what mapping you propose for narrow region?

@dolohow
Copy link
Contributor

dolohow commented Sep 14, 2015

Maybe <leader>mr?

@kalbasit
Copy link
Member

or <leader>rn perhaps ?

@dolohow
Copy link
Contributor

dolohow commented Sep 14, 2015

Ok, then ;)

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

No branches or pull requests

3 participants