HOWTO Change the SVN Editor

Posted by: jzelazny | 15 Comments »

Categorized: HOWTOs, Web Development

Because I always forget…to change the text editor that svn uses with the commit messages, just type in this command (if you use bash):
export SVN_EDITOR=vi

*Substitute vi for your editor of choice.
**Personally, I once was a pico/nano fan, then I moved to emacs, and now I am a vi person.

Tagged: ,

15 Responses to “HOWTO Change the SVN Editor”

  1. Ben says:

    Do you frequently need to include a lengthy message? I practically always simply use the -m option to specify a message on the command line.

  2. Javier says:

    Thanks, this was exactly what I was looking for.

  3. jasonmog says:

    ben it’s needed to resolve conflicts

  4. Joshua Pinter says:

    Thanks man. Worked great.

    J

  5. Julian says:

    Grosso!

    Buen tip che

  6. Mat says:

    Thanks man. I searched a long time to know this setting.

  7. [...] elegir, prefería cambiarlo por nano que es más amigable. Me puse manos a la obra y descubrí en jappler.com como se [...]

  8. Alfonso says:

    Great! I knew this option had to be somewhere! Thanks!

  9. Christian says:

    If you use svn with cmd.exe on Windows you can do it in the similar way. Create a new Environment Variable and set it’s value for example to notepad

  10. [...] “export SVN_EDITOR=vi” (thanks to jen) [...]

  11. [...] And if you prefer vi over nano then you should change the default svn editor with ”export SVN_EDITOR=vi” (thanks to jen) [...]

  12. Vinicius Pires says:

    Thanks, dude!
    Also is a good idea to put this setting inside a initializer to your shell..
    In case you are using Bash, that would be editing ~/.bashrc (or ~/.bash_profile) and putting this command there…

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>