Home >Operation and Maintenance >Linux Operation and Maintenance >How to install vim on linux system

How to install vim on linux system

(*-*)浩
(*-*)浩Original
2019-05-30 16:44:557490browse

The Vi editor has been around for a long time since its release in 1976. It not only provides users with an efficient editing interface, terminal control and other functions, but also provides us with many traditional and practical functions. But the disadvantage is that the Vi editor still lacks multi-screen, syntax highlighting, multi-step undo and other common functions necessary for today's Unix/Linux users.

How to install vim on linux system

Therefore, the development and emergence of Vim (enhanced version of Vi) has brought users a more complete, advanced and complete text editor, Vim for Linux users Everyone should be aware that it is a powerful, highly configurable cross-platform text editor that is available on Linux, OS X, Solaris, *BSD and Windows platforms.

Users who are familiar with Vim should know that its main features include: window splitting, Vimdiff, folding, flexible indentation, Unicode support, comprehensive documentation, powerful plug-in architecture, and support for many scripts Native support for languages, etc.

Below we take Ubuntu14.04 (Unity) to install the full version of VIM (VIM-basic) as an example:

Enter the following command in the terminal, and it will Automatic installation:

sudo apt-get install vim

Vim 8.0 update content

Task support Microsoft users Support DirectX Support asynchronous I/O, Channels and JSON New style testing Lambdas and Closures Partials package estamp timer (asynchronous) support for GTK 3 Viminfo merge based on timestamp

If you want to learn more about the features of Vim 8.0, you can view the changelog.

How to install Vim 8.0 in Ubuntu 16.04

Although Vim 8.0 has been officially released, it will take a long time to enter the official sources of major Linux distributions. Fortunately, someone has made an unofficial PPA for installation of Ubuntu and its derivatives. However, this method is risky and it is recommended that you only use it in the test environment.

sudo add-apt-repository ppa:jonathonf/vim sudo apt update sudo apt install vim

After the installation is completed, you can directly use the vim command to view the release information.

To uninstall this PPA source and return to the native old Vim version provided by Ubuntu official source, you can use the following command:

sudo apt install ppa-purge sudo ppa-purge ppa:jonathonf/vim

For users of other Linux distributions, in addition to waiting for the official source update , of course, you can also manually compile the source code yourself to try out Vim 8.0.

The above is the detailed content of How to install vim on linux system. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn