How to install vim in RedHatLinux9 and how to install five input methods

Source: Internet
Author: User
For example, to decompress/tmp/tools1.2 to the terminal and switch to the directory to be decompressed. For example, to decompress it to the/root/tools directory, perform the following operations: # cd/roo

1. vim Upgrade Method

1.1 download the new vim installation package and Language Pack

Download the corresponding version from www.vim.org on the vim official website. Here we use version 7.2 as an example.

Vim-7.2.tar.bz2

Vim-7.2-lang.tar.gz

Assume that the downloaded directory is/tmp/tools.

1.2 decompress

Go to the terminal and switch to the directory to be decompressed. For example, if you want to decompress the package to the/root/tools directory, perform the following operations:

# Cd/root/tools # Switch to the target directory

# Bunzip2/tmp/tools/vim-7.2.tar.bz2 # unzip

# Tar xvf/tmp/tools/vim-7.2.tar # unzip

# Tar zvxf/tmp/tools/vim-7.2-lang.tar.gz # unzip

1.3 Configuration

Switch to the vim72 directory

# Cd/root/tools/vm72

Enter the following command

$./Configure \

> -- Prefix =/usr/local/vim72 \ # installation directory

> -- With-x-enable-gui = gtk2 \ # compile gvim

> -- With-features = big

1.4 compilation and Installation

$ Make # compile

# Make install # Run with root. After installation, the executable file is in/usr/local/vim72/bim /.

1.5 install it in the system

Now vim7.2 is installed, but when vi, vim, or vimdiff is run, the RedHat Linux9 comes with v1.6, this is because the installation PATH/usr/local/vim72/bin of vim7.2 is not in the path environment variable of the system. Now you only need to create a symbolic link to the PATH variable of the system, I connected to/usr/bin:

# Mv/usr/bin/vim/usr/bin/vim61 # first change the original default vim6.1 version to a backup (you need to disable all the active vi)

# Ln-s/usr/local/vim72/bin/vim/usr/bin/vim # Link vim7.2

After the preceding command is run, run vi again. vim can see that the version has changed to version 7.2.

1.6 customize vim startup parameters

You can customize the relevant startup parameters for vim. the startup configuration file name is. vimrc, Which is ~ /. Vimrc. My content is as follows:

1.7 After the above configuration is complete, run vi or vim. The edited file's Chinese characters cannot be saved or deleted, and the problem that only half of Chinese characters can be deleted can be solved.

2 install five input methods

I have always been used to the 5-point approach, so I wanted to install the 5-point approach in linux. After both baidu and google, I found only one satisfactory article.

Http://www.linuxidc.com/Linux/2008-08/15023.htm

After my own practical operations, I cannot install it! Only the other five-stroke Input methods can be installed. For verification by multiple parties, You have to install the five-stroke Input methods (Free Chinese Input Toy For X and fcitx). The installation steps are as follows:

2.1 Download little penguin five Pen Input Method, reference, choose fcitx-3.0.0-1.i386.rpm

2.2 Rpm Installation

Start the terminal and enter the following command:

# Su # switch to a Super User

# Rpm-e miniChinput # Delete the original Input Method

# Rpm-ivh/tmp/fcitx-3.0.0-1.i386.rpm # installation input method (assuming that the installation package directory is stored in/tmp)

# Cd/usr/bin

# Ln-sf fcitx chinput

2.3 After restarting the linux system, you can see the penguin Input Method icon on the desktop. The installation is complete!

Related Article

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.