0
2
My system is gvim 7.4+xp+cygwin.
Everytime i open vim or cygwin,input pwd
pwd in cygwin to get :
/cygdrive/c/Documents and Settings/sy
I want to set the default directory /cygdrive/c/workspace
pwd in gvim to get :
c:/Documents and Settings/sy
I want to set the default directory c:/workspace
How can i make the setup in vim and cygwin?
1.i created a file named .bash_profile ,add two lines
cd /cygdrive/c/workspace
echo "hallo world "
no effect at all.
2.i add cd /cygdrive/c/workspace
in the file profile
,the wrong output is :
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: $'\r': command not found
-bash: $'\r': command not found
': not a valid identifier
-bash: $'\r': command not found
-bash: /etc/profile: line 104: syntax error near unexpected token $'\r''
profile_d ()
'bash: /etc/profile: line 104:
-bash-4.1$
I do not understand what you are trying to do. Do you want the Cygwin terminal to start in the /cygdrive/c/workspace directory? You refer to both vim and gvim. Are you using the Cygwin or the Windows versions of vim and gvim? – garyjohn – 2013-12-31T07:12:07.567