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

Disable on NERDTree, Tagbar, :help, etc. windows #27

Open
oryband opened this issue Jun 3, 2013 · 7 comments
Open

Disable on NERDTree, Tagbar, :help, etc. windows #27

oryband opened this issue Jun 3, 2013 · 7 comments

Comments

@oryband
Copy link

oryband commented Jun 3, 2013

It's kinda impossible using NERDTree, tagbar, and :help windows with hardmode. I suggest several solutions:

  1. Disable them on these sepcific windows?
  2. Add an option to disable in specific window names.
  3. Disable in Read-Only windows.

Wuddya say?

@ghost
Copy link

ghost commented Jan 1, 2014

Adding a buftype check in your .vimrc will disable it for 'special' windows like help, quickfix etc:

autocmd VimEnter,BufNewFile,BufReadPost * if !strlen(&buftype) | silent! call HardMode() | endif

@oryband
Copy link
Author

oryband commented Jan 1, 2014

Why not just add this to hardmode's code?

@ghost
Copy link

ghost commented Jan 3, 2014

See #33

@betoharres
Copy link

cmd didn't work for nerdtree, am I missing something? nice plugin btw

@ghost
Copy link

ghost commented Jan 26, 2017

@betoharres, fixed in Two-Finger@9bcce9c9a40eef0aae5290a66cfc6613bc548557
Thanks for reporting it!

@sitilge
Copy link

sitilge commented Jun 7, 2017

@TWO-FINGER confirmed, it does work for NERDTree.

@crashbell
Copy link

crashbell commented Sep 24, 2017

I can't make it work for NERDTree, is there anything else but copying @TWO-FINGER's code?

Edit: It's because I use :NERDTreeFind instead of :NERDTreeToggle.

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

4 participants