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 autocmds when drawing minimap window. #54

Open
dpc opened this issue Apr 28, 2017 · 1 comment
Open

Disable autocmds when drawing minimap window. #54

dpc opened this issue Apr 28, 2017 · 1 comment

Comments

@dpc
Copy link
Contributor

dpc commented Apr 28, 2017

I have some autocmds on BufEnter and BufLeave and they are messing up the minimap a bit.

Seems to me that the plugin should use: http://vimdoc.sourceforge.net/htmldoc/autocmd.html#autocmd-disable to disable any events when manipulating the minimap window. Save eventignore, do what's necessary, restore it.

@dpc
Copy link
Contributor Author

dpc commented Apr 28, 2017

The auto group in question:

augroup linenumbers 
  autocmd!     
  autocmd BufEnter *    :set relativenumber
  autocmd BufLeave *    :set number norelativenumber              
  autocmd WinEnter *    :set relativenumber               
  autocmd WinLeave *    :set number norelativenumber          
  autocmd InsertEnter * :set number norelativenumber 
  autocmd InsertLeave * :set relativenumber    
  autocmd FocusLost *   :set number norelativenumber
  autocmd FocusGained * :set relativenumber
augroup END

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

1 participant