User Tools

Site Tools


write_and_run_your_programs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
write_and_run_your_programs [2018/05/14 18:44] yutakawrite_and_run_your_programs [2018/05/14 18:46] yutaka
Line 107: Line 107:
  
    * When starting the editor, you are in the command mode which accept the command to action such as exit the program, save a file, search a text etc.    * When starting the editor, you are in the command mode which accept the command to action such as exit the program, save a file, search a text etc.
-   * To input the text, push ''i'' key (meaning //insert//) or ''a'' key (//add//) to move on the edit mode. +   * To input the text, push a single key ''i'' (meaning //insert//) or ''a'' (//add//) to move on the edit mode (no Enter key)
-   * To save the file, hit Esc key to come back to the command mode, type '':w'' (//write//), and hit the Enter key.+   * To save the file, push ''Esc'' key to come back to the command mode, type '':w'' (//write//), and hit the Enter key.
    * To edit the file again, push ''i'' or ''a''.    * To edit the file again, push ''i'' or ''a''.
    * You have to move to the edit mode and come back to the command mode repeatedly to finish the program. Then type '':q'' in the command mode to quit the program.    * You have to move to the edit mode and come back to the command mode repeatedly to finish the program. Then type '':q'' in the command mode to quit the program.
- 
-{{:wiki:vimode.png?direct|}} 
  
 You should know which which model are you currently working. You should know which which model are you currently working.
 +
 +{{:wiki:vimode.png?direct|}}
  
 Hints: Hints:
  
-  * If you get lost, hit the Esc key (on the top left of the keyboard) a few times so you will move to the command mode. +  * If you get lost, hit the ''Esc'' key (on the top left of the keyboard) a few times so you will move to the command mode. 
-  * The simplest way to quit vi: hit the Esc key many times, type '':q'', and hit the Enter key.+  * The simplest way to quit //vi//: hit the Esc key many times, type '':q'', and hit the Enter key.
  
 ===== Write, compile, and run the first program ===== ===== Write, compile, and run the first program =====
write_and_run_your_programs.txt · Last modified: 2024/03/25 18:22 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki