neovim

1 분 소요

최근 주로 사용하는 Neovim.

잊지 않기 위해서 적어둔다.

Text Objects

w - words
s - sentences
p - paragraphs
t - tags

Motions

a - all
i - in
t - `til
f - find forward
CTRL + E - scroll the window down
CTRL + Y - scroll the window up
CTRL + F - scroll down one page
CTRL + B - scroll up one page
H        - move cursor to the top of the window
M        - move cursor to the middle of the window
L        - move cursor to the bottom of the window
gg       - go to top of file

Multi File Edit

:n move to next file
:prev, :N move to pre file
:ls
:bNumber
:bdNumber 현재 열린 vi 목록에서 해당 파일 제거
:bw 현재 편집 중인 파일 제거

Comands

d - delete (also cut)
c - change (delete, then place in insert mode)
y - yank (copy)
v - visually select

Additional commands

dd/yy - delete/yank the current line
D/C   - delete/change until end of line
^/$   - move to the beginning/end of line
I/A   - move to the beginning/end of line and insert
o/O   - insert new line above/below current line and insert

combine with comands

{command}{text object or motion}

diw
delete in workd
dts

caw
change all word
yi)
yank all text inside parentheses
va"
visually select all inside doublequotes

DOT command repeat the last command

marks ma `a

참고링크

태그: ,

카테고리:

업데이트: