How to map a long bash command in vim?

Viewed 594

The shell command can kill chrome process.

ps -ef | grep chrome |awk '{print $2}'| xargs kill

Now I want to map the character - with above bash command.

nnoremap  -  :!ps -ef | grep chrome |awk '{print $2}'| xargs kill

It takes no effect, how to map my bash command?

1 Answers
Related