2016년 9월 21일 수요일

Use of vim

I think good programmer is learning various knowledge and
having various programming skills.

But, I think used to programming toos is important recently.

Vim is good editor for programmer.




Simple use of vim


vim filename : open filename
view filename : open filename read only (I think it is useless)

:q! : quit no save
:wq : save and quit

i : insert character before cursor
I : insert character before line
o : insert character under line
O : insert character upper line
a : insert character after cursor
A : insert character after line

w : right direction next word last character
e : right direction next word first character
b : previous word last character

dd : line delete
1,10d : 1 ~ 10 lines delete
yy : paste

h : left
j : down
k : up
l : right

^ : first of line
$ : last of line


For beginner, this is sufficient

댓글 없음:

댓글 쓰기