일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
- ODBC
- linkhard
- SQL
- 사진용어
- 사진강좌
- Photo
- 사진
- 커피
- AS
- 로터스 노츠
- 에쿠스 콘솔박스
- 용어정리
- minipresso
- 뉴칼레도니아
- Attribute
- 신혼여행
- 노출
- 자작 콘솔
- C#
- Lotus Notes
- JavaScript
- glossary
- generic
- 링크하드
- 자바스크립트
- Lotus Script
- Nas
- domino
- DICTIONARY
- ASP.NET
- Today
- Total
바라기의 이야기
VI 사용법 본문
원문 : http://www.washington.edu/computing/unix/vi.html
STARTING vi
vi filename edit a file named "filename"
vi newfile create a new file named "newfile"
ENTERING TEXT
i insert text left of cursor
a append text right of cursor
MOVING THE CURSOR
h left one space
j down one line
k up one line
l right one space
BASIC EDITING
x delete character
nx delete n characters
X delete character before cursor
dw delete word
ndw delete n words
dd delete line
ndd delete n lines
D delete characters from cursor to end of line
r replace character under cursor
cw replace a word
ncw replace n words
C change text from cursor to end of line
o insert blank line below cursor
(ready for insertion)
O insert blank line above cursor
(ready for insertion)
J join succeeding line to current cursor line
nJ join n succeeding lines to current cursor line
u undo last change
U restore current line
MOVING AROUND IN A FILE
w forward word by word
b backward word by word
$ to end of line
0 (zero) to beginning of line
H to top line of screen
M to middle line of screen
L to last line of screen
G to last line of file
1G to first line of file
<Control>f scroll forward one screen
<Control>b scroll backward one screen
<Control>d scroll down one-half screen
<Control>u scroll up one-half screen
n repeat last search in same direction
N repeat last search in opposite direction
CLOSING AND SAVING A FILE
ZZ save file and then quit
:w save file
:q! discard changes and quit file
'My Story > Tools' 카테고리의 다른 글
특정폴더 하위 디렉토리 일괄 삭제 커맨드 (0) | 2017.05.25 |
---|---|
Pydio와 ownCloud 비교 (0) | 2016.02.01 |
NAS의 웹서버가 죽었을때... ssh를 이용하여 웹서버 restart (0) | 2013.04.24 |
웹하드 솔루션 링크하드(Linkhard) 개인 10 라이센스 공구~ (0) | 2012.07.30 |
링크하드(LinkHard)... 개인용 웹하드 솔루션에 대해... (1) | 2012.06.21 |