Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Visual visual mode of vim

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

First, in the normal mode, you can press v or V to enter the visual mode and select the content

V you can select the characters from the cursor position to the end of the cursor, including lines

V Select all lines between the cursor position line and the line at the end of the cursor, selecting a rectangle

CTRL+v Select rectangular Block

Second, you can enter a special selection mode using CTRL+v. Vim provides some special commands to manipulate this text block.

0 is to extend each selected line to the beginning of the line

$is to extend each selected line to the end of the line

I add text in front of the selected text block, using I has no effect

An adds text after the selected text block, and using a has no effect

X * current text block

C modify text block

R fill the contents of the text block with one character, and fill the text block with only a few characters.

Third, move the text block

< 向左移动shiftwidth个宽度 >

Move shfitwidth broadband to the right

Fourth, glue multiple lines of content together.

J glues multiple lines of content together

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report