558
yesterday 2,634
visitor 24,981,777
13

리눅스 vi 명령어

조회 수 209201 추천 수 0 2011.10.19 10:36:19
vi 명령어는 너무 많습니다. 개인적인 정리이니 명령어가 너무 적다고 토 달지 말아주세요^^
제 생각에 처음부터 알아둬야 할 명령어는 bold효과를 주었습니다.


커서 이동
h → 왼쪽 이동
j → 아래로 이동
k → 위로 이동
l → 오른쪽 이동

검색
/ → 아래 방향으로 문자열 검색
? → 위쪽 방향으로 문자열 검색
n → 검색된 문자열의 다음 문자열로 이동
N → 검색된 문자열의 이전 문자열로 이동

복사 & 붙여넣기
yy,Y → 행복사
yw → 커서위치부터 단어끝 복사
y0 → 커서위치부터 행처음 복사
y$ → 커서위치부터 행끝 복사
yG → 커서위치부터 파일끝 복사

:1,4 co 10 1~4행을 10행으로 복사
:1,4 m 10 1~4행을 10행으로 이동

[숫자]y  → 현재 줄부터 아래 방향으로 숫자의 줄 수 만큼 추가 복사 (ex. 1y, 2y, ...)
y[숫자]  → 현재 줄부터 위 방향으로 숫자의 줄 수 만큼 추가 복사 (ex. y1, y2, ...)

v  → 블록지정
y  → 블록복사



P  → 커서의 다음 위치에 붙여넣기
p  → 커서위치에 붙여넣기
복사 명령어는 라인복사, 단어복사 등 너무 많습니다. 사용의 편리성으로 만들어졌지만 처음부터 사용하기에는 너무 힘듭니다. 일단 yy와 y[숫자], 그리고 블록복사(v, y)만을 사용하도록 합니다. 붙여넣기 또한 p만 사용하여 현재 커서 위치에서만 붙여넣기를 합니다.

삭제
x  → 한문자씩 삭제(del)
X  → 한문자씩 삭제(back space)
dd  → 한줄 삭제
D  → 커서의 위치부터 행 끝까지 삭제
dw  → 커서의 위치부터 단어 끝까지 삭제
dj  → 커서행 + 1행 삭제
dk  → 커서행 -1행 삭제
:5, 10 d  → 5~10번째 행 삭제
삭제 명령어도 복사만큼 다양합니다. 처음은 x, dd만 사용하도록 합시다.

redo & undo
ctrl + r   → redo
u  → undo

많은 편집기에서 꽤 많이 사용하는 명령어 입니다. vi 역시 이 명령어는 많이 쓰게 되는 것 같습니다.
만약 당신이 천재가 아니라면요~

 

 

출처 : http://dhna.tistory.com/235


 

 

'헬로마켓'과 함께하는 스마트한 중고 아이템 거래

https://www.hellomarket.com


8
profile

moviesjoy

January 17, 2025
*.219.162.70

Looking for the best MoviesJoy alternatives to enjoy seamless streaming of your favorite movies and TV shows? There are several platforms offering similar features and diverse libraries to keep you entertained. Websites like YoMovies , Putlocker , 123Movies , and SolarMovie provide vast collections of high-quality content across various genres, ensuring something for everyone. These alternatives often feature user-friendly interfaces, multiple streaming links, and up-to-date collections of the latest releases. Whether you're into action, drama, comedy, or documentaries, exploring MoviesJoy alternatives will ensure you never miss a moment of cinematic magic!
profile

ben

January 28, 2025
*.219.161.155

HashPack Chrome Extension and browser-based wallet of crypto for DeFi, dApps, and NFTs. Also, this wallet is a completely non-custodial wallet that international members of the community and professionals with decades of experience develop.
visit here:-
https://authhashpackschromeextension.mystrikingly.com/
https://auth-hashpacks-chrome-extension.mystrikingly.com/
https://auth-hashpackschromeextension.mystrikingly.com/
https://authhashpackschrome-extension.mystrikingly.com/
https://authhashpacks-chromeextension.mystrikingly.com/
https://auth-hashpackschrome-extension.mystrikingly.com/
https://authhashpacks-chrome-extension.mystrikingly.com/
https://auth-hashpacks-chromeextension.mystrikingly.com/
https://en-hashpacks-chrome-extension-us.mystrikingly.com/
https://en-hashpacks-chrome-extensionus.mystrikingly.com/
https://en-hashpackschrome-extensionus.mystrikingly.com/
https://enhashpackschrome-extensionus.mystrikingly.com/
https://enhashpacks-chrome-extensionus.mystrikingly.com/
https://enhashpacks-chromeextensionus.mystrikingly.com/
https://en-hashpackschromeextension-us.mystrikingly.com/
https://en-hashpackschrome-extension-us.mystrikingly.com/
https://hashpacks-chrome-extension-us.mystrikingly.com/
https://hashpackschromeextensionus.mystrikingly.com/
https://hashpacks-chromeextensionus.mystrikingly.com/
https://hashpackschromeextension-us.mystrikingly.com/
https://hashpacks-chrome-extensionus.mystrikingly.com/
https://hashpackschrome-extensionus.mystrikingly.com/
https://hashpacks-chromeextension-us.mystrikingly.com/
https://hashpackschrome-extension-us.mystrikingly.com/
profile

sivoxi roy

January 29, 2025
*.195.201.83

The Phantom Chrome Extension is an advanced browser tool that enhances online experiences. It offers users seamless navigation, added security features, and unmatched efficiency. Designed for professionals and everyday users, it’s versatile and easy to use. Phantom Chrome Extension | Phantom Wallet Extension

profile

Trezor Suite

February 04, 2025
*.167.99.122

Trezor Suite is a secure desktop and web app for managing cryptocurrencies with Trezor hardware wallets. It offers portfolio tracking, transaction management, coin exchange, security features, and privacy tools for users.

profile

janiffer

February 06, 2025
*.167.99.122

Trezor Bridge seamlessly connects your Trezor hardware wallet to supported web interfaces, ensuring secure transactions. Visit Trezor.io/start to easily download and set it up. Enjoy enhanced compatibility, robust security, and effortless crypto management with Trezor Bridge your gateway to a safer digital asset experience. Start now for ultimate peace of mind! Click on Site: Trezor.io/start $ Trezor Bridge $ NDAX Login

profile

tony

February 08, 2025
*.167.99.122

Trezor Bridge is the safest way to connect your hardware wallet to web apps. Enjoy seamless crypto management with top-notch security. Trezor Bridge is a crucial software that connects Trezor hardware wallets to web browsers, ensuring seamless communication between users and their digital assets. It enhances security, eliminating the need for browser extensions.

profile

vopabod smith

February 09, 2025
*.208.70.177

Phantom Wallet Extension is a secure and intuitive Solana wallet for managing cryptocurrencies, NFTs, and DeFi applications. Enjoy seamless transactions, staking, and top-tier security right from your browser.

profile

Cuevana

February 14, 2025
*.36.219.211

In the ever-expanding universe of online streaming platforms, cuevana stands out as a pioneer, a disruptor, and a testament to the power of innovation in the digital age. Since its inception,has been synonymous with accessibility, convenience, and a vast array of content, reshaping the way we consume movies and TV shows. Let's delve into the journey of Cuevana, exploring its origins, evolution, and impact on the streaming landscape cuevana

문서 첨부 제한 : 0Byte/ 2.00MB
파일 제한 크기 : 2.00MB (허용 확장자 : *.*)
List of Articles
번호 제목 글쓴이 날짜 조회 수
13 Centos7 firewall-cmd 설정방법 제리 2020-01-08 181953
12 CentOS7 SSH 포트 변경 제리 2019-07-26 90808
11 리눅스 파일, 폴더 오너 바꾸기 제리 2015-08-27 188694
10 리눅스 파일내용에서 단어 검색 제리 2015-08-18 153339
9 리눅스 jdk(java) 설치및 적용 제리 2015-01-12 259778
8 리눅스 reboot 톰켓 자동실행 제리 2014-01-21 142762
7 톰켓 2개이상 구동 제리 2013-12-30 201816
6 심볼릭 링크(ln) 만들기 및 확인/삭제 제리 2013-12-30 138330
5 fedora Linux에 Telnet 또는 SSH로 접속했을 때 한글이 깨지는 문제 해결 방법 제리 2011-10-20 104595
4 리눅스 기본 명령어 제리 2011-10-19 163646
» 리눅스 vi 명령어 [8] 제리 2011-10-19 209201
2 리눅스 권한설정 chmod 제리 2011-10-19 141981
1 tar 압축하기 압축풀기 제리 2011-10-19 247692

Program Note 로그인 :)