I'm trying to make my life easier by making a shortcut for the following command
I need to to be able to press
:akeyword and execute the command above.
The directory needs to be specified with a variable. I want to access a folder under
C:\Users\windowsusername\randomfolder; my problem is that the username varies between my computers. So I need
$USERNAME to be used and not some fixed name.
I guess I must add something like the following, which doesn't work.
:command! :akeyword :Ex "C:\Users\" . $USERNAME "\randomfolder"