1,352
yesterday 1,923
visitor 24,850,559
13

리눅스 vi 명령어

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

dsfsd

November 01, 2024
*.190.83.192

Web WhatsApp is a browser-based extension of the popular WhatsApp mobile app, offering users an easy way to access their chats on a larger screen. By linking the mobile app with a web browser, Web WhatsApp lets you stay connected without picking up your phone constantly. WhatsApp Web

Google Classroom is a free, web-based platform developed by Google to streamline the creation, distribution, and management of assignments in educational settings. It’s part of Google Workspace for Education, allowing teachers and students to connect, collaborate, and organize coursework online easily. Google Classroom

profile

글쓴이

November 16, 2024
*.142.119.6


<a href="https://sanityhomesltd.com/buy-dome-tents-onlinebuy-dome-tents-online/">buy dome tents online buy dome tents online/</a>
 
 <a href="https://sanityhomesltd.com/buy-apple-cabin/">Buy apple cabin</a>

 <a href="https://sanityhomesltd.com/product/apple-cabin-homes/">apple cabin homes</a>
 
 <a href="https://sanityhomesltd.com/buy-smart-houses-online/">buy smart houses online</a>
 
 <a href="https://sanityhomesltd.com/product/space-cabin-house-for-sale/">Space cabin house for sale</a>
 
 <a href="https://sanityhomesltd.com/product/tiny-homes-for-sale/">Tiny homes for sale</a>
 
 <a href="https://sanityhomesltd.com/product/capsule-cabin-for-sale/">Capsule cabin for sale</a>

 <a href="https://sanityhomesltd.com/product/smart-houses-for-sale/">Smart houses for sale</a>
 
 <a href="https://sanityhomesltd.com/product/wooden-houses-for-sale/">Wooden houses for sale</a>
 
 <a href="https://sanityhomesltd.com/product/log-cabins-for-sale/">Log cabin for sale</a>
 
  <a href="https://sanityhomesltd.com/buy-dome-houses-online-buy-dome-house-online/">buy dome houses online/</a>
 
 <a href="https://sanityhomesltd.com/product/camping-tents-for-sale/">camping tents for sale/</a>
 
 <a href="https://sanityhomesltd.com/product/pool-domes-for-sale/">Pool domes for sale/</a>
 
 <a href="https://sanityhomesltd.com/product/luxury-dome-houses-customized-3/">Luxury dome houses/</a>
 
 <a href="https://sanityhomesltd.com/product/geodesic-dome-tents-for-sale/">Geodesic dome tents for sale/</a>
 
 <a href="https://sanityhomesltd.com/product/office-dome-for-sale/">Office dome for sale/</a>
 
 <a href="https://sanityhomesltd.com/product/conference-domes-for-sale/">Conference domes for sale/</a>
 
 <a href="https://sanityhomesltd.com/product/event-domes-for-sale/">Event domes for sale/</a>
 
 <a href="https://sanityhomesltd.com/product/geodesic-dome-for-sale/">Geodesic domes for sale/</a>
 
 <a href="https://sanityhomesltd.com/buy-container-houses-online/">Buy container houses online/</a>
 
 <a href="https://sanityhomesltd.com/product/container-house-for-sale/">Container houses for sale/</a>

 <a href="https://sanityhomesltd.com/product/z-shaped-container-houses-for-sale/">z-shaped container houses for sale/</a>
 
 <a href="https://sanityhomesltd.com/product/x-shaped-container-houses-for-sale/">x-shaped container houses for sale/</a>
 
 <a href="https://sanityhomesltd.com/product/flat-detachable-container-houses-for-sale/">Flat detachable container houses for sale/</a>
 
 <a href="https://sanityhomesltd.com/product/flat-packing-container-houses-for-sale/">Flat packing container houses for sale/</a>
 
 <a href="https://sanityhomesltd.com/product/expandable-container-houses-for-sale/">Flat packing container houses for sale/</a>
 
 <a href="https://sanityhomesltd.com/product/container-houses-for-sale/">Foldable container house for sale/</a>
 
 <a href="https://sanityhomesltd.com/product/mobile-toilets-for-sale/">Mobile toilets for sale/</a>
 
 <a href="https://sanityhomesltd.com/product/mobile-container-toilets-for-sale/">Mobile container toilets for sale/</a>
 
 <a href="https://sanityhomesltd.com/product/luxury-mobile-container-toilets/">Luxury Mobile container toilets for sale/</a>
 

profile

moviesjoy

November 16, 2024
*.204.0.156

MoviesJoy  is your go-to platform for free HD streaming of movies and TV shows, offering an extensive, ad-free library that spans every genre. From action-packed blockbusters to timeless classics and trending series, MoviesJoy delivers a seamless, high-quality viewing experience without the hassle of ads or subscriptions. The platform's user-friendly interface makes it easy to discover content across genres, whether you're in the mood for comedy, drama, thriller, or documentaries. Accessible on any device, MoviesJoy allows you to watch your favorite movies and shows anytime, anywhere, making it perfect for on-the-go entertainment. With no sign-ups or hidden fees, MoviesJoy prioritizes viewer satisfaction, ensuring a smooth, reliable streaming experience. Dive into a world of endless cinematic choices and immerse yourself in hours of entertainment—MoviesJoy is here to provide exceptional content, entirely free of charge.
profile

글쓴이

November 18, 2024
*.82.24.60

A good spa treatment reduces the level of stress by lowering the heart rate, increasing relaxation and releasing feel-good hormones, reducing depression to a great extent. Look out for Massage Near on the internet which gives you the best massage center for your budget. The spa provides different treatments which renew your body and mind, and fade your nervous tension off your mind. Many top Spa In Velachery benefit you by getting better sleep, proper digestion, and increased energy.


profile

sivoxi roy

December 10, 2024
*.58.69.239

Phantom Wallet Extension: Experience the best of Solana with Phantom, the secure and user-friendly wallet designed for effortless crypto management. Store, send, receive, and swap Solana tokens with ease, while exploring decentralized apps (dApps) directly from your browser. With advanced security features like seed phrase encryption and biometric authentication, Phantom ensures your assets remain safe. Phantom Extension | Phantom Wallet Extension

profile

tom

December 11, 2024
*.153.179.173

Netcoins Login is a popular cryptocurrency exchange platform that enables users to buy, sell, and trade various digital currencies securely. If you're new to cryptocurrency and want to get Netcoins Login
visit here:-
https://netcoins-login-web.teachable.com/p/home
https://netcoinsloginweb.teachable.com/p/home
https://netcoins-loginweb.teachable.com/p/home
https://netcoinslogin-web.teachable.com/p/home
https://netcoins-logi-web.teachable.com/p/home
https://netcoinslogiweb.teachable.com/p/home
https://netcoins-logiweb.teachable.com/p/home
https://netcoinslogi-web.teachable.com/p/home
https://netcoins-logii-web.teachable.com/p/home
https://netcoinslogiiweb.teachable.com/p/home
https://netcoins-logiiweb.teachable.com/p/home
https://netcoinslogii-web.teachable.com/p/home
https://netcoins-loggin-web.teachable.com/p/home
https://netcoinslogginweb.teachable.com/p/home
https://netcoinsloggin-web.teachable.com/p/home
https://netcoins-logginwebb.teachable.com/p/home
https://netcoins-loggi-web.teachable.com/p/home
https://netcoinsloggiweb.teachable.com/p/home
https://netcoins-loggiweb.teachable.com/p/home
https://netcoinsloggi-web.teachable.com/p/home
https://netcoins-loggii-web.teachable.com/p/home
https://netcoinsloggiiweb.teachable.com/p/home
https://netcoins-loggiiweb.teachable.com/p/home
https://netcoinsloggii-web.teachable.com/p/home
https://netcoins-llogin-web.teachable.com/p/home
https://netcoinslloginweb.teachable.com/p/home
https://netcoins-lloginweb.teachable.com/p/home
https://netcoinsllogin-web.teachable.com/p/home
profile

janiffer

December 17, 2024
*.127.148.159

The Coinbase Extension Coinbase Extension. Manage crypto, track assets, and stay secure with streamlined functionality directly in your browser for quick,provides a secure setup guide for your Trezor wallet.

profile

jack maa

December 21, 2024
*.110.84.58

The Trezor Hardware Wallet is a secure cryptocurrency storage device designed to keep your digital assets safe. It stores private keys offline, making it highly resistant to hacks. With its user-friendly interface, Trezor supports numerous cryptocurrencies and offers two-factor authentication for extra protection. Whether you're a beginner or experienced user, it ensures peace of mind with secure backups, password recovery, and constant firmware updates. Trezor is the ideal choice for anyone seeking top-tier security in the ever-evolving world of cryptocurrency.

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

Program Note 로그인 :)