Cheat Sheet for Vim tpope – [A Complete List]

Vim tpope: Vim or the Visual Editor is the default editor under the UNIX operating system. It is an interactive tool that displays changes made in the file on the screen while you edit the file. Using this editor, you can insert, edit or remove a word as the cursor moves throughout the file.

The term Vim tpope means a Git wrapper written as a plugin for the Vim text editor. It is also called fugitive, which makes the version of control.

In this article, you will learn Cheat Sheet for Vim tpope – [A Complete List]. Use these commands to save your working time. Let’s get into this article.

Vim tpope
Vim tpope

Last Updated on Mar 15, 2022.

Delete Surroundings Commands:

In the below table, you will learn about deleting surrounding commands and their functions of Vim tpope.

Command Function
ds This command is used to delete surroundings.
ds” It is used to delete the surrounding “.
ds) If you want to delete the surrounding (), you can use this shortcut.
dst Make use of this command to delete the surrounding tag.

Visual Mode Commands:

in the below table, you will learn visual mode commands and their functions of Vim tpope. Please use these commands carefully.

 Command Function
 S”
If you want to surround the selected text with “, you can use this command.
 S

 

By using this command, you can surround the selected text with <p>….</p>.

Create Surroundings Commands:

The below table explains create surroundings commands and their functions of Vim tpope.

Command Function
ysiw) This command is used to add surrounding () to the inner word.
yss] Make use of this command to add surrounding [] to the whole line.

Functions Commands:

The below table explains functions commands and their functions of Vim tpope. Please use these shortcuts carefully.

Command Function
ysWfprint In order to wrap the old text into a function print, you can use this command.
ysWFprint Use this command to wraps a word into a function print with spaces.

Verdict:

You can use these commands for Windows 10 and Windows 11. Kindly make sure to use shortcuts properly to save your working time.

You will learn a Cheat Sheet for Vim tpope. Thank you for reading this article. I hope this article is helpful. If you have any questions or doubts regarding this article, please mention them in the comment section. Thank You!!

Read More:

Leave a Comment