modified mapping to :call goto_window_on_enter()

'map <buffer> <CR> :call goto_window_on_enter()'
don't work, so modified to
'noremap <buffer> <CR> :call goto_window_on_enter()'