1
커서 위치에있는 단어에 grep을 실행하고 싶다고합시다. yiw
을 수행 한 다음 명령 창에서 을 사용하십시오 (:grep
이후).커맨드로 arugment로 사용할 단어를 보내는 가장 빠른 방법은 무엇입니까?
적은 키 누르기로 명령 창에 단어를 보내는 더 빠른 방법은 무엇입니까?
커서 위치에있는 단어에 grep을 실행하고 싶다고합시다. yiw
을 수행 한 다음 명령 창에서 을 사용하십시오 (:grep
이후).커맨드로 arugment로 사용할 단어를 보내는 가장 빠른 방법은 무엇입니까?
적은 키 누르기로 명령 창에 단어를 보내는 더 빠른 방법은 무엇입니까?
당신이 찾고있는 무슨이다 :
<C-r><C-w>
:help cmdine-editing
에서 :
CTRL-R CTRL-F
CTRL-R CTRL-P
CTRL-R CTRL-W
CTRL-R CTRL-A
Insert the object under the cursor:
CTRL-F the Filename under the cursor
CTRL-P the Filename under the cursor, expanded with
'path' as in |gf|
CTRL-W the Word under the cursor
CTRL-A the WORD under the cursor; see |WORD|