Vim common editing function assistance

Thank you for following

Article directory

In this chapter we talk about vim extensions.

---------------------------------------------------------------------------------------------------------------------------------

1. What is vim?

In linux, vim is a text editor developed from vi, which can actively mark the correctness of syntax with font color. Vim can run on multiple operating platforms such as unix, windows, and mac.

Two, how to do it?

1. Connect the system shear plate

code show as below:

A daily text editing tool with the ability to communicate with other applications. In vim, there is a register called unnamedplus pointing to the system clipboard, and adding code to the configuration file. code show as below:

set clipboard+=unnamedplus

With this, you can copy in other applications and paste in vim.

2. Strengthen the status bar

Install the status bar enhancement plugin lightline. The code is as follows (example):

cd ~/.local/share/nvim/site/pack/text/start
git clone https://github.com/itchyny/lightline.vim.git

When you start vim, you can see that the status bar becomes colored.


Summarize

This chapter talks about two interesting plugins for vim.

Guess you like

Origin blog.csdn.net/m0_72532016/article/details/126091965