function! RaiseEnter()"<<<
if getbufvar("", "&buftype") == "quickfix"
nunmap <CR>
endif
endfunction
">>>
function! KillEnter()"<<<
if getbufvar("", "&buftype") == "quickfix"
nmap <CR> <Nop>
endif
endfunction
">>>
Try this out.
function! RaiseEnter()
let i = winbufnr(winnr())
if getbufvar(i, '&buftype') == 'quickfix'
exe "nunmap <CR>"
endif
endfunction
function! KillEnter()
let i = winbufnr(winnr())
if getbufvar(i, '&buftype') == 'quickfix'
exe "nmap <CR> <Nop>"
endif
endfunction
Regards,
Winfred
