Sunday, June 13, 2010

Re: how to disable cursor to jump to another window in Quickfix window?

Justin Fugy wrote:
>
>
> In the quickfix window, jump to the error under the cursor while
> hitting the <Enter> key or double-clicking the mouse on a line.
>
> How to disable cursor to jump to another window containing the error
> file, and Simultaneously, display the error content in the window?
>
> In another words, i hope that quickfix have the general behavior
> except to make the cursor to leave the quickfix window, because i have
> a glance at the content about current error line in quickfix window
> ONLY and would rather check the content about the next error line in
> quickfix window immediately, without <C-W>w switching window at first
> and hitting <Enter> key or double-clicking the mouse on a line AGAIN.
>
>

Maybe you can map with <expr> like the following:

no <expr><cr> bufname('%')=~'^\s*$'?'<cr><c-w><c-p>':'<cr>'

Keep in mind, that it would map for any nameless buffer.
If you choose to do so, you could map just the <tab> key, and leave <cr> w/
its normal behaviour.

Alex


--
View this message in context: http://old.nabble.com/how-to-disable-cursor-to-jump-to-another-window-in-Quickfix-window--tp28875100p28875368.html
Sent from the Vim - General mailing list archive at Nabble.com.

--
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

No comments: