
⇒ vi에 매우 익숙해져야한다~!

:w : write
:r filename : read & insert a file
:e filename : edit a new file
:n : edit next file (여러 개의 파일을 읽은 후 다음 파일 수정)
/string : search string in forward direction ex)/bug
?string : search string in backward direction ex)?bug
n : search next string in forward direction
N : search next string in backward direction
:1, $s/cnt/count/g : substitute one string with another
⇒ 1번 줄의 cnt를 count로 바꾸고 커서를 그쪽으로 옮겨라
:10, .w! filename : write into a new file
⇒ 10번줄부터 현재줄까지 filename에 덮어 씌어라
:.,+10y : yank (copy)
⇒ 현재부터 10줄 더 복사해라
:!ls : execute shell command
:help [word] : help about word