Tutorial by Examples

The dot operator repeats the last action performed, for instance: file test.tx helo, World! helo, David! (cursor at [1][1]) Now perform a cwHello<Esc> (Change Word helo to Hello) Now the buffer looks like that: Hello, World! helo, David! (cursor at [1][5]) After typing j_ the cur...
This is very useful when setting indent of your code if condition1 if condition2 # some commands here endif endif move your cursor to the 2nd line, then >>, the code will indent to right. Now you can repeat your action by continue to 3rd line, then hit . twice, the result will be if ...

Page 1 of 1