Home » Questions » Computers [ Ask a new question ]

Windows XP environment variable editor replacement that handles lines

Windows XP environment variable editor replacement that handles lines

I'm looking for an environment variable editor that handles linebreaks well. I have a monster %PATH% to edit (edited to save side-scrolling):

Asked by: Guest | Views: 29
Total answers/comments: 2
Guest [Entry]

"Try out Rapid Environment Editor

Or based on Dominic's idea:
open up vim

:r !path
:%s/;/\r/g

Fix up your path lines, adding or deleting or modifying them
(delete first blank line)

:%s/\n/;/g"
Guest [Entry]

"You could always write out a new file, splitting on ; and writing out each component to a new line. Edit in your favourite editor, then join the lines back together with a ;.

You'd just need to write two tiny little utilities."