From the course: Learning Vim
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Solution: Buffer
- [Instructor] So vim sleep.txt. And now to open a new window we're going to use the new command and we're going to give it the name of the file. We can use time completion, so vim will complete the file name for us. And now enter. To move between the windows control + W W. And now copy the line with Y Y. Go back Control + W W. Go to the end of the file with shift G and then P for paste.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
Windows and buffers1m 54s
-
(Locked)
Challenge: Buffer12s
-
(Locked)
Solution: Buffer28s
-
(Locked)
Edit files2m 12s
-
(Locked)
Challenge: Edit files10s
-
(Locked)
Solution: Edit files23s
-
(Locked)
Move between buffers1m 28s
-
(Locked)
Challenge: Switch buffer9s
-
(Locked)
Solution: Switch buffer22s
-
Read command1m 29s
-
(Locked)
Challenge: Insert file6s
-
(Locked)
Solution: Insert file13s
-
(Locked)
-
-
-