Editing Logo

Introduction

Welcome back to the Vim Series! In this post, we will be looking at how to increase your editing speed from the commands we learned last time. If you haven’t checked out the Vim Series: Movement post, I would recommend you read that before moving on here. With that said, let’s get started.

Editing (Normal Mode)

To increase speed editing, there are a few commands you should try out in Normal Mode. Go ahead and try them out in the file you used in the previous post.

KeybindingDescription
oMoves cursor down 1 line and enters Insert Mode
Shift + OMoves cursor up 1 line and enters Insert Mode
Shift + PPastes content in buffer up 1 line
aAppend, Enters Insert Mode w/ cursor on the right
Shift + AEnters Insert Mode at the end of the line
Shift + IEnters Insert Mode at the beginning of the line
eaEnters Insert Mode at the end of the word

Searching (Command Mode)

When you are using a text editor, it can be very important to be able to search. With vim, this is also the case. Check out the commands below on the file you used last time.

KeybindingDescription
/Search for a word
nCycle through results from search
Shift + NGo back through results from search
*Cycle through results from search
#Go back through results from search

Editing (Visual Mode)

As stated in the previous post, Visual Mode is very versatile and with theses commands you can see why. Go ahead and indent some lines and upper case some words.

KeybindingDescription
>Moves text to the right
<Moves text to the left
~Switch case of character
uSwitch text to lower case
Shift + USwitch text to upper case

Wrapping it up

Congrats, you have just finished the second post of the Vim Series. Again, thanks for reading and I hope this was helpful. If you haven’t checked out the first post on Movements please do so. Next post we will go over single-line movements. See ya next time!