I am trying to add the following mapping into my vimrc:
nnoremap <leader>sv :source $MYVIMRC | filetype detect<cr>
This works in command mode, however, in the mapping I get:
E475: Invalid argument: detect
Why does it throw that error? What would be the proper way to get around it?