Introduction to Linux in HPC/The vim text editor
Introduction to Linux in HPC/The vim text editor /
Jump to navigation
Jump to search
Revision as of 17:38, 1 October 2020 by Mukund-pondkule-6a11@uni-paderborn.de (talk | contribs) (Created page with "__TOC__ === Video === <!--T:5--> <youtube width="600" height="400" right>IfD9IPixgpo</youtube> [https://git-ce.rwth-aachen.de/hpc.nrw/ap2/tutorials/linux/-/blob/master/Slid...")
Video
Linux Introduction Slides 91 - 99 (9 pages)
Slide Layout
page 1:
vi and vim are terminal based text editors.
Advantages vs. disadvantages
page 2 - 6:
animation
normal mode -> insert mode
insert mode -> normal mode
normal mode -> command mode
command mode -> normal mode
page 7:
arrow keys or h, j, k, l for navigation
undo
quit with/without saving
search for text
yank
page 8:
If you forget which mode you are in, keep pressing Esc.
You may need a lot of time to learn vim.
page 9:
Knowing vim basics is important for Linux users.
However there are also many GUI-based text editors.
Quiz
1. How to enter the insert mode of vim?
2. How would you open a file in read-only mode using the vim editor ?
Hint: In terminal
Hint: In terminal
man vim
| Info: | If you forget which mode you are in while using vim, just keep pressing Esc. |
| Warning: | no warnings in this section |
Exercises in Terminal (slide 100)
1. Create a vim file and write some text in it with insert (pressing i) and than undo and redo the changes.
| Answer: |
|