On Thursday, February 7, 2013 12:24:25 PM UTC-6, Ben Fritz wrote:
> 
>     " get rid of scrolloff option for certain buffers like the quickfix and
>     " preview windows
>     autocmd BufEnter *
>           \ if (&ft=='qf' || &previewwindow || (bufname('%') ==# 
> "__Tag_List__" || bufname("%")==?'__Tagbar__')) && !exists('s:scrolloff_sav') 
> |
>           \   let s:scrolloff_sav=&scrolloff |
>           \   set scrolloff=0 |
>           \ endif
>     " File type will not be set on the first BufEnter
>     autocmd Filetype qf
>           \ if !exists('s:scrolloff_sav') |
>           \   let s:scrolloff_sav=&scrolloff |
>           \   set scrolloff=0 |
>           \ endif
>     autocmd BufLeave *
>           \ if (&ft=='qf' || &previewwindow || (bufname('%') ==# 
> "__Tag_List__" || bufname("%")==?'__Tagbar__')) && exists('s:scrolloff_sav') |
>           \   let &scrolloff=s:scrolloff_sav |
>           \   unlet s:scrolloff_sav |
>           \ endif
> 
> A few relevant settings:
> 
>   completeopt=menuone,preview
>   omnifunc=ccomplete#Complete
>   foldmethod=syntax
>   scrolloff=5
> 

I tried but was unable to create a minimal configuration based on these setting 
that would reproduce the issue. I'll look into it some more this weekend at 
home.

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to