herophant
herophant

Reputation: 680

How to fix odd behaviour when doing :r TEST in vimtutor?

I was going through Lesson 5 in vimtutor, and I had selected a part of lesson 5.3 in visual mode, and then done :w TEST as instructed in lesson 5.3.

In Lesson 5.4 however, I was told to do :r TEST, and so I did do that. The text from the file TEST was indeed pasted right in to where I had the cursor.

However, when I tried to press the j key to move down further, something weird happened. The line after which I had my cursor on came up to the line I was working on (both these lines were from the pasted text from TEST file), the apparent line break gone.

Eg.

line before I press j
another line

became

line before I press janother line

for some reason.

What I've tried:

Anyway, thanks for the help in advance!

Upvotes: 0

Views: 24

Answers (1)

D. Ben Knoble
D. Ben Knoble

Reputation: 4703

Sounds like you hit J which does a « join » on the two lines.

Check your shift key/caps lock.

Upvotes: 1

Related Questions