[Vim] Move files to a non-exist folder

Method

mkdir -p ./some/path/; mv yourfile.txt $_


mkdir -p ./some/path
# Create the directory (include all intermediate directories)
mv yourfile.txt $_
# Move files to $_
# it expands to the last argumentpassed to the previous shell cmd

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s