Monday, April 10, 2006

Remember Vi commands

Here a quick example to replace a string in the whole text via the vi editor (unix):
:1,$s/search text/replace text/g

As I needed to re-search it for the second time, I thought to put it on my blog...

Vi Cheat sheet: http://www.lagmonster.org/docs/vi.html

No comments: