901
yesterday 2,018
visitor 24,454,037
13

리눅스 vi 명령어

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


104
profile

Chris Brown

April 30, 2024
*.28.249.153

Trezor Bridge Download is a crucial tool for managing your Trezor hardware wallet. It acts as a communication bridge between your Trezor device and your computer, enabling you to securely access and control your cryptocurrency assets

profile

mahira saq

April 30, 2024
*.122.57.250

Trezor.io/start is likely a web address associated with the setup and initialization process for Trezor hardware wallets. Trezor is a popular brand of hardware wallet used for securely storing cryptocurrencies such as Bitcoin, Ethereum, and others

profile

jack maa

April 30, 2024
*.122.57.250

MetaMask Chrome extension that gives you access to Ethereum dapps, decentralized finance platforms, NFT marketplaces, and the wider Web3 ecosystem. MetaMask is a web browser extension and mobile app that allows you to manage your Ethereum private keys. ChainGPT is an advanced artificial intelligence model that has garnered significant attention in the realm of AI and blockchain technology. ChainGPT is redefining how businesses interact with blockchain technology by offering a suite of sophisticated AI solutions

profile

dante

May 01, 2024
*.0.79.158

THC gummies are edible products that are infused with tetrahydrocannabinol (THC), which is the psychoactive compound found in cannabis. These gummies provide a convenient and discreet way to consume THC, offering an alternative to smoking or vaping.
<a href="https://buygummiesonline.com/" rel="dofollow">mike bites reviews<a>
<a href="https://buygummiesonline.com/" rel="dofollow">dank gummies packaging<a>
<a href="https://buygummiesonline.com/" rel="dofollow">flav watermelon rings 1000mg<a>
<a href="https://buygummiesonline.com/" rel="dofollow">binoid gummies<a>
<a href="https://buygummiesonline.com/" rel="dofollow">mike bites delta 8 review<a>
<a href="https://buygummiesonline.com/" rel="dofollow">drops blueberry muffin<a>
<a href="https://buygummiesonline.com/" rel="dofollow">mike bites gummies review<a>
<a href="https://buygummiesonline.com/" rel="dofollow">mike bites watermelon review<a>
<a href="https://buygummiesonline.com/" rel="dofollow">dixie edibles<a>
<a href="https://buygummiesonline.com/" rel="dofollow">dank gummies #eattheweed<a>
<a href="https://buygummiesonline.com/" rel="dofollow">delta 9 gummies primo vibes<a>
<a href="https://buygummiesonline.com/" rel="dofollow">primo vibes<a>
<a href="https://buygummiesonline.com/" rel="dofollow">dank gummies 500mg real or fake<a>
<a href="https://buygummiesonline.com/" rel="dofollow">primo vibes delta 9 gummies<a>
<a href="https://buygummiesonline.com/" rel="dofollow">midlothian cbd oil cbd american shaman of midlothian<a>
<a href="https://buygummiesonline.com/" rel="dofollow">plus edibles<a>
<a href="https://buygummiesonline.com/" rel="dofollow">flav rings 1000mg<a>
<a href="https://buygummiesonline.com/" rel="dofollow">happy fruit mellow mango<a>
<a href="https://buygummiesonline.com/" rel="dofollow">punch edibles and extracts<a>
<a href="https://buygummiesonline.com/" rel="dofollow">binoid llc<a>
<a href="https://buygummiesonline.com/" rel="dofollow">petra mints near me<a>
<a href="https://buygummiesonline.com/" rel="dofollow">mike bites review<a>
<a href="https://buygummiesonline.com/" rel="dofollow">dank gummies review<a>
<a href="https://buygummiesonline.com/" rel="dofollow">flav rings 1000mg review<a>
<a href="https://buygummiesonline.com/" rel="dofollow">punchedibles<a>
<a href="https://buygummiesonline.com/" rel="dofollow">dank gummies 500mg eattheweeds review<a>
<a href="https://buygummiesonline.com/" rel="dofollow">binoid delta 9<a>
<a href="https://buygummiesonline.com/" rel="dofollow">mike bites black raspberry review<a>
<a href="https://buygummiesonline.com/" rel="dofollow">binoid near me<a>
<a href="https://buygummiesonline.com/" rel="dofollow">richardson delta 9 gummies cbdeastrichardson.com<a>
<a href="https://buygummiesonline.com/" rel="dofollow">dank gummies 500mg dosage<a>
<a href="https://buygummiesonline.com/" rel="dofollow">wyld sour cherry review<a>
<a href="https://buygummiesonline.com/" rel="dofollow">wyld sour cherry gummies review<a>
<a href="https://buygummiesonline.com/" rel="dofollow">mike bites black raspberry soft lozenges<a>
<a href="https://buygummiesonline.com/" rel="dofollow">midlothian delta 8 gummies<a>
<a href="https://buygummiesonline.com/" rel="dofollow">wyld gummies review<a>
<a href="https://buygummiesonline.com/" rel="dofollow">dank gummies 500mg eattheweed price<a>
<a href="https://buygummiesonline.com/" rel="dofollow">how long does binoid take to ship<a>
<a href="https://buygummiesonline.com/" rel="dofollow">buy gummies online<a>
<a href="https://buygummiesonline.com/" rel="dofollow">midlothian delta 8 gummies cbd american shaman of midlothian<a>
<a href="https://crumpetsdisposableshop.com/" rel="dofollow">crumpets disposable<a>
<a href="https://amnesiacoffeeshopamsterdam.com/" rel="dofollow">s5 haze<a>
<a href="Winchesterammostore.com/" rel="dofollow">Winchester<a>
<a href="https://caminogummiestore.com/" rel="dofollow">camino<a>
<a href="Classicfirearmsstore.com/" rel="dofollow">rossi circuit judge for sale<a>
<a href="https://crumpetsdisposableshop.com/" rel="dofollow">crumpet dispo<a>
<a href="https://crumpetsdisposableshop.com/" rel="dofollow">crumpet disposable<a>
<a href="https://crumpetsdisposableshop.com/" rel="dofollow">crumpets vape<a>
<a href="https://crumpetsdisposableshop.com/" rel="dofollow">crumpets strain<a>
문서 첨부 제한 : 0Byte/ 2.00MB
파일 제한 크기 : 2.00MB (허용 확장자 : *.*)
List of Articles
번호 제목 글쓴이 날짜 조회 수sort

Program Note 로그인 :)