In vim to undo is ‘u’ and to redo (i.e. undo undo) is ‘Ctrl+R’…
Reading about Vim: reformat a Python file to have 4 space indentations and came up with this:
In my .vimrc file I set expandtab, which means tab characters are converted to spaces.
Today I had to edit a python file, and I know python is funny about tabs and spaces, so I wanted to temporarily disable the expandtab feature in Vim.
Turns out you can do it with: