parsed.org

Tips by tag: buffer

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
'Save As' Functionality by cygnus on Feb 17, 2005 01:30 PM

Use C-x C-w to save a buffer under an alternate name.

bufferemacssave

Use split to move blocks of text around rather than having multiple terminals open. Open the file you want using the split command:

split: path/to/file

C-w and then k or j will move you between vertically between the buffers when you are not in insert mode (up and down, respectively). For example, this makes moving text between files much easier.

buffercommandeditorssplitterminaltextwindow
RSS