博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
vim 中缩进(批量缩进和对其缩进)
阅读量:4229 次
发布时间:2019-05-26

本文共 293 字,大约阅读时间需要 1 分钟。

原始文件:

helloworldnice

普通缩进

shift + > (或者 Shift + < )。

批量缩进

摁下 v,然后方向键 ←→↑↓ 选择要缩进的行(这儿选中第 2、3 行),最后摁下 Shift + > (或者 Shift + < )进行左右缩进。

hello        world        nice

对齐缩进

摁下 v,然后方向键 ←→↑↓ 选择要缩进的行(这儿选中第 2、3 行),最后摁下 = 与第一行对齐缩进。(这儿的缩进是与选中区域的上一行进行对其缩进)。 

hello                world                nice

 

转载地址:http://rjjqi.baihongyu.com/

你可能感兴趣的文章
System Architecture with XML
查看>>
Microsoft SQL Server 2005 Stored Procedure Programming in T-SQL & .NET
查看>>
Sams Teach Yourself Microsoft Office Access 2003 in 24 Hours
查看>>
Leveraging Web Services: Planning, Building, and Integration for Maximum Impact
查看>>
Implementing Backup and Recovery: The Readiness Guide for the Enterprise
查看>>
Wireless Communications over MIMO Channels: Applications to CDMA and Multiple Antenna Systems
查看>>
UMTS Performance Measurement: A Practical Guide to KPIs for the UTRAN Environment
查看>>
Grid Networks: Enabling Grids with Advanced Communication Technology
查看>>
Communication Systems for the Mobile Information Society
查看>>
Beginning Ubuntu Linux: From Novice to Professional
查看>>
IPsec Virtual Private Network Fundamentals
查看>>
Algorithms and Networking for Computer Games
查看>>
Java Regular Expressions: Taming the java.util.regex Engine
查看>>
CSS Instant Results
查看>>
The Vest Pocket Guide to Information Technology
查看>>
Beginning MySQL
查看>>
Uncertainty and Information: Foundations of Generalized Information Theory
查看>>
Professional Web APIs with PHP: eBay, Google, Paypal, Amazon, FedEx plus Web Feeds
查看>>
Cases on Information Technology Planning, Design And Implementation
查看>>
SQL For Dummies
查看>>