Skip to content

Instantly share code, notes, and snippets.

@h1mesuke
Created September 2, 2011 05:20
Show Gist options
  • Save h1mesuke/1187968 to your computer and use it in GitHub Desktop.
Save h1mesuke/1187968 to your computer and use it in GitHub Desktop.
function! s:multi_map(modes, map_cmd)
for mode in split(a:modes, '\zs')
execute mode . a:map_cmd
endfor
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment