Kudos
Collect
Twiiter
Facebook
Share
Develop somethings, meditation, reading and thinking...

vi 에디터 치환하기

Last updated over 5 years ago
0 0 0 1

vi 로 도메인 설정 작업등을 할 때 디렉토리 이름만 바뀌는데 직접 입력하기가 슬슬 귀찮아 질때 사용한다.

:%s/search_string/replacement_string/g

예제

$ vi 

aaa bbb ccc
aaa bbb ccc
aaa bbb ccc

:%s/aaa/ddd/g

본문안의 모든 aaaddd 로 치환된다. %를 빼면 커서가 있는 줄에서만 치환이 이루어진다.

Reference

Hi, my name is Richard. I’m a developer wants to make the world better with logic power. Mainly I use Linux, Nginx, MySQL, PHP and JavaScript . I want to share my knowledge with someone that it was also based from some great persons via LYNMP. 👨‍💻

Essedrop - Make your file online instantly
 

Responses

Leave a response to @richard

Please sign in to comment.
Markdown is also available in comment.