Type vim ListDir. sh and hit ↵ Enter. Once inside the Editor, type “I” or “i. " This will allow you to insert/start typing your shell script.