Solve the problem that the direction keys and backspace keys cannot be used normally by vi in ubuntu.

Source: Internet
Author: User
Solution 1: The direction keys and backspace keys cannot be used normally in ubuntu vi. in ubuntu, the direction keys cannot be used in the editing status, the return key cannot be deleted. Solution: You can install the vimfull version, in the full version...
Solution 1: The direction keys and backspace keys cannot be used normally in ubuntu vi. in ubuntu, the direction keys cannot be used in the editing status, the return key cannot be deleted.
Solution: You can install the vim full version. in the full version, the keyboard is normal. after installation, use the vi command. Install vim: ubuntu is pre-installed with the vim tiny version, but the vim full version is required. Run the following statement to install vim full: $ sudo apt-get remove vim-common $ sudo apt-get install vim. vim is an excellent software, it can be seen in application. Solution 2: run the ": set nocompatible" command on the vi command line to set the vi to be incompatible. In ubuntu11.10, the VI command has three modes: input mode and edit mode. ": "after the command mode vi enters, the default mode is edit mode vi editing mode. the default shortcut keys are j k h Lvi. in edit mode, you can use I to enter input mode vi. the input mode can only be in English, by default, the up, down, left, and right arrows in vi input mode cannot be used. you can use Esc to return to vi editing mode Shift +; you can enter command mode vi command mode w save, q exit 1) it is effective for all users and solves the problem of user vi Chinese garbled characters in the system sudo gedit/etc/vim/vimrc. tiny add the following content: # The content of the file is shown as follows: "Encoding related set encoding = UTF-8 set langmenu = zh_CN.UTF-8 language message zh_CN.UTF-8 set fileencodings = ucs-bom, UTF-8, cp936, gb18030, big5, euc-jp, euc-kr, latin1 set fileencoding = utf-82) only valid for the current user solution ubuntu is by default in the current user's home directory, No. vimrc file. you can touch one file by yourself. vimrc file, and add www.2cto.com # the file content is shown as follows: "Encoding related set encoding = UTF-8 set langmenu = zh_CN.UTF-8 language message zh_CN.UTF-8 set fileencodings = ucs-bom, UTF-8, cp936, gb18030, big5, euc-jp, euc-kr, latin1 set fileencoding = hongzhguan, by UTF-8

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.