" Vim :map commands map! map! lhs rhs map map lhs rhs call map(list, 'v:val') call map (list, 'v:val') mapclear mapclear! nmapclear vmapclear xmapclear smapclear omapclear imapclear lmapclear cmapclear tmapclear " :help map-bar " '<' is not in 'cpoptions' map _l :!ls more^M:echo "rhs" " \| 'b' is not in 'cpoptions' map _l :!ls \| more^M:echo "rhs" " ^V| always, in Vim and Vi map _l :!ls | more^M:echo "rhs" map lhs :search('foo\\|bar'):echo "rhs" " multiline RHS map baz \ :echo ( \ \'bar') "\ comment map lhs "\ comment \ echo "foo" map lhs "\ comment \ echo "foo" map lhs "\ comment \ echo "foo" map l hs "\ comment \ echo "foo" map l hs "\ comment \ echo "foo" map lhs rhs map l h s rhs map lhs "\ comment (matches as RHS but harmless) echo "clear" " Issue #12672 nnoremap foo :echo call( "\ comment \ {x->x}, \ ['foo']) nnoremap bar :echo ( \ \ 'bar') " Example: " /autoload/netrw.vim if !hasmapto('NetrwOpenFile') |nmap % NetrwOpenFile|endif