Re: New Line Criteria ?

9 views
Skip to first unread message

Paul

unread,
Apr 13, 2026, 5:29:02 PM (3 days ago) Apr 13
to vim_use
On Mon, Mar 30, 2026 at 01:43:23PM -0700, Christopher wrote:
> How do I get vim to show a file to display for example where there is
>*/bin:* place it on a new line but revert back to how it was before the
>file was loaded into vim ?

Put all "/bin:"s on a new line: :%s/\/bin:/\r&/g
Revert (if simply undoing (u) isn't enough): :e!

Stan Brown

unread,
Apr 13, 2026, 10:05:47 PM (3 days ago) Apr 13
to vim...@googlegroups.com
Or, if you don't intend to do any other edits that you'll want to save:
:q!
That quits Vim without saving your edited version of the file.

Stan Brown
Tehachapi, CA, USA
https://BrownMath.com
Reply all
Reply to author
Forward
0 new messages