Vim – base commands for editing document

Vim – base commands for editing document January 20, 2018Leave a comment

We already discover what is the easiest way to learn Vim and we learn how to navigate on a document so it’s time to try base commands used for editing.

Deleting text

If you want to delete a single letter you have to move to it and then press x key. I think it’s very intuitive because x it’s always used to close banners, popups and other windows in most of the systems.

Inserting text

If you want to insert given text you have to move to the right place which is the first character after the character where you want to put your text and then press i – remember that inserting would not end unless you press esc to quit inserting mode.

If you have Rd green string and you want to fix the first word you have to place your cursor at d and then press i

You can also use press a which will activate append mode. The only difference between insert and append mode is that the first mode insert text before letter you are currently on and append mode inserts text after the letter you are currently on.


You already know how to navigate, delete and insert so it’s time to practice!

Download free RSpec & TDD ebook

Do you want to earn more or jump to the next level in your company? Do you know that testing skills are one of the most desired skills? There is only first step: start testing and do it right. My ebook can help you. Subscribe to the newsletter to get a free copy of the book.

Leave a Reply

Your email address will not be published. Required fields are marked *