인터넷에서 우연히 vi cheat sheet이란 걸 봤다. vi의 수많은 명령어들과 기능들 중에서 특히 많이 쓰이는 기능들을 간단히 표로 정리해 놓은 문서인데, 얼마나 많은 기능들을 내가 쓰고 있는지 궁금해져서 읽어봤다.
다행히 대부분의 기능은 내가 사용하고 있는 것들이다. 이로써 vi를 잘 쓰진 못해도 그냥 쓰고 있다고는 얘기할 수준은 되는 것같다. 뒤쪽의 몇 가지 기능들(명령어들)은 잘 모르는 것이었는데, 이번 기회에 익혀놔야겠다.
[Shell commands]
:sh invoke subshell; use the exit command to return to vi
:r !command insert output of command below current line
[Reading in files]
:r filename insert filename below current line
[Line numbers]
Ctrl-g display current line number and number of lines in file

댓글을 달아 주세요