매번 까먹는 vim command 를 정리한다.
NORMAL
:<line-number>: line-number 로 이동한다.- word 단위 jump
- forward:
w - backward:
b
- forward:
- blackhole registre:
"_xor"_y/d/dd- 블랙홀 레지스터 표현은
_
- 블랙홀 레지스터 표현은
INSERT
VISUAL
- 선택한 영역 클립보드에 복사:
"+y - 선택한 영역 앞뒤로 쿼터/더블쿼터 추가:
c""<Esc>P- 싱글쿼터인 경우 "" > '' 변경
HANDLE files
- 파일로 저장하기:
:w {file_name} - 현재 파일을 이용하기:
!uv run %percent 기호 사용- 혹은
:terminalor:term으로 새로운 터미널 window 로 결과로 볼 수 있음(vim terminal, This feature is for running a terminal emulator in a Vim window. A job can be started connected to the terminal emulator. For example, to run a shell) - https://stackoverflow.com/a/49658758
- 혹은