You can edit an environment variable in-place by running vared:
$ vared PATH
It will give you a readline-style buffer to edit the variable's contents and will save them back to the environment after you're done.