If you want to create a custom command, use :command:
: command Open_my_document e /var/book/document.txt
Then you can use:
:Open_my_document
Usually you can just type :Opeand then press tab, and vim will complete the full name of the command.
Note that your command must start with an uppercase letter, because only vim built-in commands can begin with lowercase letters.
source
share