News for hackers. Stuff that matters.
Re:100 Vim commands every programmer should know by Tichy on Wednesday July 02, 2008 @05:26AM (#233953)
Btw., I just checked how to do your transformation in Eclipse, using regular expressions. ctrl+f pops up the finder window. Check "regular expressions". Then in "find" enter ".* (\w+ \w+ \d)" and in "Replace With" enter "<li>$1</li>". Press "replace all".

This gives you the <li>...</li> bits - add <ul> and </ul> by hand as you have to do in Vim.

The impressive thing is that the finder popup also includes context sensitive help for regular expressions. So If you type \, it gives you a list with all the options (\w for word character, \d for digit, and so on).

I am fairly good with regular expressions, not so much with keyboard shortcuts. Combined with the context sensitive help, the regular expressions are even more powerful.

I think Emacs also has regular expression search and replace, but without the context sensitive help.

There are no comments on this comment yet.