Le lundi 21 juillet 2014 09:37:43 UTC+2, Enno a écrit :
> When using mkview and loadview autocmds such as
>
> au BufWinLeave *.vim mkview
> au BufWinEnter *.vim silent loadview
>
> then jumping to a yet not displayed *.vim file from a quickfix window, for
> example a match found by the plugin ack.vim, then
>
> ':echo winnr()==winnr('#')<CR>'
>
> shows
>
> '1'.
>
> Since the quickfix window is still open, expected is
>
> '0'.
>
> This makes a preview mapping in the quickfix window impossible, such as
>
> autocmd FileType qf nnoremap <buffer> p <CR><C-W>p
>
> that jumps to a result but keeps the focus in the quickfix (location) list
> window. If this equality of previous and current window is expected,
> which mapping is the correct one?
It works flawlessly with `set eventignore=BufWinEnter`.
However without it, even without any BufWinEnter autocmd, the previous window
equals the current window.
--
--
You received this message from the "vim_dev" 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_dev" 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/d/optout.