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?

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui