set space for a block of code :4,9s/^/ / It means, from line 4 to line 9, search for ^ and replace by / / Go to a block of code using shift 0 : move cursor to the end of block shift 9 : move cursor to the head of block