You may need to create directories from a text file wherein each line defines a category from which a directory should be created.

So here is the command to use :

%g/\<\w\+\>/ y A | exe ' !mkdir '. shellescape(substitute(substitute(@a, '\n\+\s*', '', ''), '\s*\n\+', '', '')) | let @a =""

and the silent version :

%g/\<\w\+\>/ y A | exe 'silent !mkdir '. shellescape(substitute(substitute(@a, '\n\+\s*', '', ''), '\s*\n\+', '', '')) | let @a =""

Community content is available under CC-BY-SA unless otherwise noted.