On the problem of ubuntu editing with securecrt vi

  • 2020-05-15 03:26:07
  • OfStack

Under the Ubuntu, initial a bit of a problem when using vi, is in edit mode when you use the direction key, does not make the cursor, but appeared on the command line [A [B [C [D such letters, and edit the error, even at ordinary times about the backspace key (Backspace key) are not used, can only use Delete for deletion. Aiming at this problem, there are a lot of online answer, for example, is to install the full version vim ah, Edit/etc/vim/vimrc tiny methods, such as very complex is a mess, here I will make a detailed summary:

1. Edit/etc vim/vimrc. tiny

Due to/etc vim/vimrc. tiny owner is root users, so be under the authority of root to modify this file. Quite simply, the penultimate sentence in this file is "set compatible",

Changing "compatible" to "nocompatible" incompatibility mode can solve the problem of changing the directional key to ABCD. It's also easy to solve the Backspace key problem by adding one more sentence after the previous sentence:

set backspace=2

You can solve the problem. At this point, no matter for which user, vi can be easily used to edit the file according to our habits.

Using Vi under Ubuntu is a solution where the backspace key cannot be used with the directional key


Related articles: