Suppose i'm in vim editing the file ~/hello.txt
I would like to send this files as an attachment with mutt from vim using some terminal command.
What does such a command look like?
The command looks like this:
Since you're executing it within Vim and editing the attachment, you could also use this:
You didn't say anything about a message body, so I just used an empty message body by redirecting stdin from /dev/null.
How would you do it from your shell?
You can execute shell commands from Vim with: