Hi, For those of you who are interested, I have created a folding expression for editing Python source code in Vim. You can find it at: http://www.vim.org/script.php?script_id=515 Best regards, Jorrit