Hi,
On 5/14/07, Alberto Miorin <[EMAIL PROTECTED]> wrote:
I hate the <CR>, because when i hit it for mistake, it moves the cursor.
So I disable it with:
nmap <CR> <Nop>
nmap <C-CR> <Nop>
I was happy, when I discovered that cmd-window needed the <CR> mapped.
So I fixed it with:
au CmdwinEnter * nunmap <CR>
au CmdwinLeave * nmap <CR> <Nop>
Now I discovered that also quickfix-window need the <CR> mapped. But I
cannot
find the correct event/pat.
Any ideas?
You can use the BufEnter or BufNew autocmd and test whether
the 'buftype' option is set to 'quickfix' for the current buffer.
- Yegappan