vim registes의 활용은 복사 붙여넣기, 파일명 가져오기, 매크로 수정하기 등 다양하다.
:help registers
ctrl + r -> use register in Insert mode
자동으로 등록됨
"0 -> 가장 최신 것
"9 -> 가장 오래된 것
매크로를 a에 등록한 경우, command mode에서 아래와 같이 수정할 수 있다.
:let @a='{ctrl + r a}'
ex) :let @a='cwTESTjk'
"% -> Current file
". -> Last Insert mode
": -> Last Command
:help filename-modifiers
%:p -> Make file name a full path
%:h -> Head of the Filename
%:t -> Tail of the Filename
%:r -> Root
%:e -> Extension