How do I work with multiple files at the same time?
vi allows for multiple files to be open at the same time. Unlike many editors, you only see one file at a time. If you start vi with multiple files on the command line they'll all be opened up.
You'll start out in the first file, and you can move to the next file by typing :n.
If you've made changes to the current file that you don't want to keep, you can go on by using :n!. Note that this will discard any changes that you've made.
If you want to save, you need to use :w first.
vi allows for multiple files to be open at the same time. Unlike many editors, you only see one file at a time. If you start vi with multiple files on the command line they'll all be opened up.
You'll start out in the first file, and you can move to the next file by typing :n.
If you've made changes to the current file that you don't want to keep, you can go on by using :n!. Note that this will discard any changes that you've made.
If you want to save, you need to use :w first.
'TA > Common' 카테고리의 다른 글
ip주소 표시할때 뒤에 쓰는 /24 /25 /26 (0) | 2012.12.28 |
---|---|
[jailkit] sftp 사용시 상위 디렉토리 접근 차단 방법 - jailkit (0) | 2012.12.28 |
[linux] vi regular expression (0) | 2012.12.24 |
[ssh] start SSH server on Ubuntu (0) | 2012.12.24 |
[ssh] Keeping SSH session from Firewall (0) | 2012.12.24 |