Say I have following 2 similar files in 2 different workspace on same linux machine.
/user1/ws1/ip/src/ip_main.c
/user1/ws2/ip/src/ip_main.c
Now I did,
cd user1/ws1/
vim ip/src/ip_main.c
then I press ESC
then executed
:cd ../ws2
which shows my pwd as "user1/ws2
"
Now I want to open ip/src/ip_main.c
in pwd i.e "user1/ws2
"
using ESC
:vertical diffsplit "some logic to get to ws2/ip/src/ip_main.c"
note after :cd ../ws2
:pwd
command show "user1/ws2"
but :echo $PWD
command still show "user1/ws1"
How can i do it,Can anyone help ?