How To Set SVN_EDITOR Environment Variable To Vim

Loading

Problem: You are trying to use the command svn propedit svn:externals and you are receiving the error:

svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR are set, and no 'editor-cmd' run-time configuration option was found

Solution: Set vim as your SVN_EDITOR

Command:

export SVN_EDITOR=vim

To permanently set this environment variable put the below line in your ~/.bash_profile file.

export SVN_EDITOR=vim

Did it solve your problem?

About the author

Sudheer is an entrepreneur and software developer. Get more from Sudheer on Twitter.


Thanks

Thanks a lot coz I badly needed to fix it.

I am still facing an error

I am still facing an error message on my VDU.

Would you mind telling us the

Would you mind telling us the error you are receiving?

Funcion

Funcion

You're welcome

You're welcome.

emartini said in his comment:
"It worked perfect, thanks!"

Almost...

Tanks for the tip, but doesn't work to me.

I'm Debian user and to solve this I just change the export SVN_EDITOR=vim from ~/.bash_profile to ~/.bashrc

Worked for me; using Fedora

Worked for me; using Fedora 12. Thanks; wasn't aware of needing to use EXPORT -- this also solved my provlem of string to run 'set PS1' from bash_profile :)

Works :)

Thanks it works on ubuntu. Y does it ask us to set it?

Because SVN needs to know

Because SVN needs to know which editor to open

Fixing solution

Thanks for letting me know.I was looking for the solution.Finally I got it.

Keep it up

Works fine, thx

Works fine, thx

Thanks my friend

Thanks my friend

thanks

works ok thanks!

I'm wondering though how this happened, I reinstalled OSX and all of a sudden it's been throwing this message - I think something got stuffed up when restoring from time machine

working!!!!!!

Good post. I’m been looking for topics as interesting as this.
Very informative and information presented very well,
i really liked reading your blog,I really tried the pearl to set the svn_environment variables to Vim and was working too.
thanks for sharing this information.

How To Set SVN_EDITOR Environment

to set SVN_EDITOR Environment we have to implement in the java. i thought that it may implement in the java because it have in built dictionary is available. it definately works in the java.

Hello, There's another way (a

Hello,

There's another way (a better way imho).

just check your /usr/bin/editor : it's a symlink to /etc/alternatives/editor
then check /etc/alternatives/editor : it's a symlink to /bin/nano (on my debian)
so just replace the symlink like this (you must be root):

ln -sf /usr/bin/vim /etc/alternatives/editor

the side effect is that all appli using /usr/bin/editor will now launch vim :)

It worked!

It worked!

The natural environment is

The natural environment is contrasted with the built environment, which comprises the areas and components that are strongly influenced by humans. A geographical area is regarded as a natural environment. Thanks.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>. The supported tag styles are: <foo>, [foo].

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
spac_flight:
By submitting this form, you accept the Mollom privacy policy.