Skip to content

Instantly share code, notes, and snippets.

@eduardoarandah
Created June 30, 2020 22:44
Show Gist options
  • Save eduardoarandah/f7922e040af13d705e1e589c2738e655 to your computer and use it in GitHub Desktop.
Save eduardoarandah/f7922e040af13d705e1e589c2738e655 to your computer and use it in GitHub Desktop.
Prefix tailwind classes using vim command
" this is the command used in this video: https://www.youtube.com/watch?v=YnaCMqSOYEA
" put it in register q with "qyiW
" Execute with :g/className/norm@q
" Dont forget to add keyword separators :set iskeyword+=- :set iskeyword+=:
0/className^Mf=llvi"^[:s/\%V\</tw-^M
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment