You can use this method, but should not include a space before | , because it will be part of the display:
nmap <Leader>f :foo<Return>| " Do foo nmap <Leader>b :bar<Return>| " Do bar
| separates commands in vim, so the lines above work like this:
nmap <Leader>f :foo<Return> " Do foo nmap <Leader>b :bar<Return> " Do bar
If you want to use | char in the map itself, see map_bar help for more information:
*map_bar* Since the '|' character is used to separate a map command from the next command, you will have to do something special to include a '|' in {rhs}. There are three methods: use works when example ~ <Bar> '<' is not in 'cpoptions' :map _l :!ls <Bar> more^M \| 'b' is not in 'cpoptions' :map _l :!ls \| more^M ^V| always, in Vim and Vi :map _l :!ls ^V| more^M (here ^V stands for CTRL-V; to get one CTRL-V you have to type it twice; you cannot use the <> notation "<CV>" here). All three work when you use the default setting for 'cpoptions'. When 'b' is present in 'cpoptions', "\|" will be recognized as a mapping ending in a '\' and then another command. This is Vi compatible, but illogical when compared to other commands.
source share