parsed.org

Tips by tag: ed

Reverse Lines by xinu on Jan 15, 2005 05:36 PM

Running this ed command will reverse the lines in the current buffer. This would be useful for logfiles and the like:

:g/^/m0
buffercommandsededitorsvim
RSS