November 19 2009, 22:54:53 #117 [0 Agree] [0 S] [0 T]

The reason VIM is badass: the dot command. Holy shit.

Replies: 8

November 19 2009, 23:17:51 #118 [0 Agree] [0 S] [0 T]

tl;dr explain

November 19 2009, 23:21:11 #119 [0 Agree] [0 S] [0 T]

@118
I don't think you know what tl;dr means.

November 20 2009, 04:00:46 #123 [0 Agree] [0 S] [0 T]

The dot command (.) repeats the last change made and it is a sexy command.

November 20 2009, 22:08:37 #155 [0 Agree] [0 S] [0 T]

@123
Usage example?

November 21 2009, 06:28:38 #167 [0 Agree] [0 S] [0 T]

@155 From the VIM manual:

The . command is one of the most simple yet powerful commands in Vim. It repeats
the last delete or change command. For instance, suppose you are editing an HTML file and want to delete all the <B> tags.You position the cursor on the first < and
delete the <B> with the command df>.You then go to the < of the next </B> and kill it using the . command.The . command executes the last change command (in this case, df>).To delete another tag, position the cursor on the < and press the . command. Figure 2.13 illustrates how this can work.

November 21 2009, 08:54:37 #174 [0 Agree] [0 S] [0 T]

Eh, that's cool I guess.

In jEdit I'd just search </?b> and replace with a blank string. Or </?font[^>]*> to remove those nasty font tags.

November 23 2009, 14:04:33 #230 [0 Agree] [0 S] [0 T]

setting marks across documents.

November 27 2009, 17:32:13 #269 [0 Agree] [0 S] [0 T]

I need to find a use for setting marks… hmm.