Vivian De Smedt

Blogging in GitHub

toc

Survive the First Day in Vim

Summary

How to replace the text of a region by the content of the clipboard?

One of the big difference with other text editor is that Vim has no delete action but only a cut action. This mean that when you want to replace the content of a region the standard approach of copy, delete, past fails. It will be translated in Vim into copy, cut, past, the cut action will cancel the copy action and the operation will be blank (unless you use another register for the cut action e.g.: "_x)

Solution:

How to open a new file?

Solutions:

How to switch between buffers?

Solutions:

The undo function is quit coarse

Solution: