---
title: "ubuntu 更改svn 编辑器为vi"
author: "jackliu2013"
date: "2015-07-24T15:36:28Z"
tags: []
categories: ["操作系统"]
slug: "ubuntu-svn-vi"
draft: false
lastmod: "2015-07-24T15:48:20Z"
id: 2229978
url: "https://jackliu2013.iteye.com/blog/2229978"
---

1.执行如下命令：  
      $ sudo update-alternatives --config editor  
       执行后，出现如下画面：  
P2PTranslateFile$ sudo update-alternatives --config editor  
有 4 个选项可用于替换项 editor (提供 /usr/bin/editor)。

  选择       路径            优先级  状态  
\------------------------------------------------------------  
  0            /bin/nano          40        自动模式  
  1            /bin/ed           -100       手动模式  
  2            /bin/nano          40        手动模式  
\* 3            /usr/bin/emacs23   0         手动模式  
  4            /usr/bin/vim.tiny  10        手动模式  
选择你想要的，我这里选择了4  
完成