Vim Quickies/치트시트
Vim 치트 시트
내용물
일반적으로 도움이 되는 내용
텍스트 탐색
여러 파일 작업
수색
텍스트 조작
비주얼 고급 선택
NERDTree와 함께 일하기
명령
일반적으로 도움이 되는 내용
Open a file for editing :e path/to/file.txt
Return to Normal mode ESC or <CTRL>+C
텍스트 탐색
노멀 모드에 있어야 합니다. ESC를 사용하여 Visual, Replace 또는 Insert 모드를 종료합니다.
(left) h
(down) j
(up) k
(right) l
next word e
Jump to the first line gg
Jump to the last line G
텍스트 입력
Insert text before cursor i
Insert text after cursor a
여러 파일 작업
Open a file in a horizontal split :sp path/to/file.txt
Open a file in a vertical split :vsp path/to/file.txt
Move to a split window page <CTRL>+w and a direction key (h, j, k, or l)
Move to next window pane <CTRL>w w
Make selected pane bigger CTRL>w + (yes, you need the shift key for the plus)
Make selected pane smaller <CTRL>w -
수색
Search for a word /<word>
Go to next match n
Find and replace on line :s/<find>/<replace>
Find and replace globally :%s/<find>/<replace>//gc
Go to first quote, replace text in quotes: ci"
텍스트 조작
cut the current line dd
copy the current line yy
paste below current line p
paste above current line P
Remove the character under cursor x
Remove the character before cursor X
Delete the word under cursor de
Delete to the end of the line d$
Remove five lines starting here 5dd
Copy five lines starting here 5yy
indent this line >>
indent five lines starting here 5>>
Replace mode (overtype) r
비주얼 고급 선택
Visual mode v
Visual Line mode V
Visual Block mode <CTRL>v
NERDTree와 함께 일하기
Open the NERDTree :NERDTree
Toggle the NERDTree on and off :NERDTreeToggle
Open selected file <ENTER>
Open selected file in horiz. split i
Open selected file in vert. split v
File menu m
Help ?
명령:
Run a command :!<command>
Open a shell :sh
대화형 자습서를 보려면 openvim.com을 시도하십시오.
Github에서 저를 팔로우하세요: www.github.com/rubiin
Reference
이 문제에 관하여(Vim Quickies/치트시트), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://dev.to/rubiin/vim-quickies-cheatsheet-30gm
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
Open a file for editing :e path/to/file.txt
Return to Normal mode ESC or <CTRL>+C
(left) h
(down) j
(up) k
(right) l
next word e
Jump to the first line gg
Jump to the last line G
Insert text before cursor i
Insert text after cursor a
Open a file in a horizontal split :sp path/to/file.txt
Open a file in a vertical split :vsp path/to/file.txt
Move to a split window page <CTRL>+w and a direction key (h, j, k, or l)
Move to next window pane <CTRL>w w
Make selected pane bigger CTRL>w + (yes, you need the shift key for the plus)
Make selected pane smaller <CTRL>w -
Search for a word /<word>
Go to next match n
Find and replace on line :s/<find>/<replace>
Find and replace globally :%s/<find>/<replace>//gc
Go to first quote, replace text in quotes: ci"
cut the current line dd
copy the current line yy
paste below current line p
paste above current line P
Remove the character under cursor x
Remove the character before cursor X
Delete the word under cursor de
Delete to the end of the line d$
Remove five lines starting here 5dd
Copy five lines starting here 5yy
indent this line >>
indent five lines starting here 5>>
Replace mode (overtype) r
Visual mode v
Visual Line mode V
Visual Block mode <CTRL>v
Open the NERDTree :NERDTree
Toggle the NERDTree on and off :NERDTreeToggle
Open selected file <ENTER>
Open selected file in horiz. split i
Open selected file in vert. split v
File menu m
Help ?
Run a command :!<command>
Open a shell :sh
Reference
이 문제에 관하여(Vim Quickies/치트시트), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/rubiin/vim-quickies-cheatsheet-30gm텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)