" This is the Hello World program in Vim script. echo "Hello, world!" " This is a simple while loop in Vim script. let i = 1 while i < 5 echo "count is" i let i += 1 endwhile unlet i " From https://en.wikipedia.org/wiki/Vim_%28text_editor%29#Vim_script