Technical requirements
Throughout this chapter, we will be writing a basic Python application. You don’t have to download any code to follow along with this chapter as we’ll be creating files from scratch. However, if you ever get lost and need more guidance, you can view the resulting code on GitHub:
https://github.com/PacktPublishing/Mastering-Vim-Second-Edition/tree/main/Chapter01
We will be using Vim to primarily write Python code throughout this book, and it is assumed that the reader is somewhat familiar with the language. Examples assume you’re using Python 3 syntax.
Working with Python 2 code
If you must live in the past, you can convert Python 3 examples to Python 2 code by changing the print()
command syntax. Change all of print('Woof!')
to print 'Woof!'
to make the code run in Python 2.
We will also be creating and modifying Vim configurations, which are stored in a .vimrc
file. The resulting .vimrc
file is available from the previously mentioned GitHub link.