Skip to content

Instantly share code, notes, and snippets.

@theJian
Created November 1, 2018 08:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theJian/beb8519127b9209f644197a09620d939 to your computer and use it in GitHub Desktop.
Save theJian/beb8519127b9209f644197a09620d939 to your computer and use it in GitHub Desktop.
let lowercase = 'abcdefghijklmnopqrstuvwxyz'
let uppercase = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
let numbers = '0123456789'
let punctuation = "<>`@#~!\"$%^&/()=+*-_.,;:?\\\'{}[] " " and space
for str in [lowercase, uppercase, numbers, punctuation]
for key in split(str, '\zs')
execute printf("noremap <silent> <buffer> <nowait> %s :call DO_SOMETHING_OR_NOTHING<cr>", key)
endfor
endfor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment