Exercise 3.1: IndentationError

Hi @AhmedAltalag ! It seems like you tried to copy from the lecture notes and paste into the vi editor as it auto-indents by default. Here is a tip- when you want to paste multiple lines, you can enter “Paste” mode by typing this when in you are in Command mode:

:set paste

Then when you want to go back to the default you can do:

:set nopaste

Source: https://stackoverflow.com/questions/31712737/inserting-text-in-vim-causes-each-line-to-be-shifted-right

2 Likes