1,110
yesterday 1,458
visitor 24,672,273
13

리눅스 vi 명령어

조회 수 180905 추천 수 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


11
profile

vewrtysu

July 21, 2024
*.0.78.193

profile

Henry Ebon

July 30, 2024
*.73.203.131

profile

shibaswap

August 11, 2024
*.162.147.199

SushiSwap is a community-driven decentralized exchange (DEX) for traders and liquidity providers.
https://usasushiswap.com/
profile

Henry Ebonyd

August 13, 2024
*.0.78.203

profile

글쓴이

August 17, 2024
*.122.57.251

WalletConnect is a protocol that connects decentralized applications (dApps) with mobile wallets. To use it, download the WalletConnect app, which allows you to scan QR codes or deep link with supported dApps for seamless transactions and interactions.
Read More:- 
WalletConnect
Download Wallet Connect
WalletConnect
profile

coinbase login

August 28, 2024
*.122.57.250

Ledger Live offers a range of features to cater to diverse user needs, including staking, swapping, and portfolio analytics. Its commitment to security sets it apart, employing cutting-edge encryption and offline storage options to shield your assets from potential breaches.

profile

vopabod

September 04, 2024
*.190.83.204

Coin98 Wallet is a decentralized finance (DeFi) wallet that allows users to manage, trade, stake, and exchange cryptocurrencies across multiple blockchains. It's designed to serve as a gateway to various DeFi services, supporting a wide range of tokens and blockchain networks. Coin98 Wallet

The TronLink Wallet is a popular cryptocurrency wallet extension specifically designed for the Tron blockchain (TRX). It allows users to store, send, receive, and manage TRX and other tokens based on the Tron network, like TRC10 and TRC20 tokens. Tronlink Wallet Extension

profile

글쓴이santois

September 09, 2024
*.0.60.130

profile

peceb12921

September 13, 2024
*.190.87.252

The Infinity Wallet extension is a game-changer in the world of digital wallets. Designed for both beginners and experienced users, it offers unmatched security and user-friendly features. If you're searching for a seamless way to manage your cryptocurrencies, Infinity Wallet has you covered. Infinity Wallet Extension

In the fast-paced world of cryptocurrency, having a reliable and secure wallet extension is crucial. Blade Wallet Extension stands out as a top choice for both beginners and experienced users. With enhanced features, security, and ease of use, it is setting new standards in the crypto wallet industry. Blade Wallet Extension

profile

Desert safari

September 20, 2024
*.110.91.163

Desert safari Dubai offers an unforgettable adventure in the vast Arabian desert. Visitors can experience thrilling dune bashing in a 4x4 vehicle, sandboarding on golden dunes, and enjoy stunning sunset views.

profile

james willam

September 20, 2024
*.162.150.105

Phantom Wallet Extension is a secure and user-friendly crypto wallet for managing Solana-based assets. Easily send, receive, stake tokens, and access decentralized apps (dApps) directly from your browser. With built-in security features and seamless design, Phantom ensures fast transactions and a smooth DeFi experience for users of all levels. Phantom Wallet Extension | Phantom Wallet Extension

문서 첨부 제한 : 0Byte/ 2.00MB
파일 제한 크기 : 2.00MB (허용 확장자 : *.*)
List of Articles
번호 제목 글쓴이 날짜 조회 수

Program Note 로그인 :)