I'm trying to map a command in Vim for the first time.
I want it to execute the current python script, so I put the following in my .vimrc:
noremap <silent><F5> :wall | !clear && echo "% is running..." && python %<CR>
When I start Vim I get the following error:
/bin/bash: -c: line 0: syntax error near unexpected token `newline'
/bin/bash: -c: line 0: `clear && echo "/home/ekirstein/.vimrc is running..." && python /home/ekirstein/CR>'
Can someone please tell me what I'm doing wrong?