To do copy paste on vim, we can use visual mode by typing v when on normal mode. Use cursor to select the text to copy. Below we select 6 characters. After selecting the text then press y to copy the text to register.
Continue reading “Vim : Copy Paste Operation”Create text file with ed
Unix alike system have ed for editing text file which is i feel strange at first. I learned some time ago to create small text file out of curiosity.
Lets try by creating a text file containing 3 lines.
- type ed on terminal
- type a then enter (a is append command in ed)
- type your text file content.
- To end input mode type . then enter on a line.
- Type w filename.txt then enter to save to a file.
- Type q to quit from ed.
Here we will show in a terminal.