I put this line in my .vimrc so that I could press escape to exit vim while in normal mode:
:nnoremap <Esc> :q<CR>
But now $ vim
causes vim to flash up briefly and then exit every time. Same with $ vim filename
.
Removing the line restores normal behaviour. Is there any way to get this functionality? I am pretty sure that I had it working before but can't think why it would have broken between then and now.