2009-12-01 6 views
4

명령 모드에서 항상 파일 이름을 자동 완성하도록 VIM을 만드는 방법은 무엇입니까? 예를 들어 ": cd/ww [Tab]"을 입력하면 제대로 작동하지만 파일을 열고 ": o/ww [Tab]"을 입력하면 완료하는 대신 "^ I"문자가 삽입됩니다.파일을 열 때 vim 명령 줄 완성

답변

6

시도 :

:e /ww[Tab] 
+0

더 재미있게하기 위해 설정하십시오 : wildmenu 설정 – Ben

1

사용 "E"또는 "분할" "O"또는 기타 편집 대신 명령.

보너스 사실 : vim은 적어도 문서에 따르면 ": o"명령을 실제로 지원하지 않습니다. ": help : o"는 다음과 같이 말합니다 :

 
This command is in Vi, but Vim only simulates it: 

           *:o* *:op* *:open* :[range]o[pen] 
           Works like |:visual|: end Ex mode. 
           {Vi: start editing in open mode} 

:[range]o[pen] /pattern/  As above, additionally move the cursor to the 
           column where "pattern" matches in the cursor 
           line. 

Vim does not support open mode, since it's not really useful. 
For those situations where ":open" would start open mode Vim will 
leave Ex mode, which allows executing the same commands, but updates 
the whole screen instead of only one line. 
+0

감사합니다. 나는 모든 윈도우 단축키와 드롭 다운 메뉴를 가지고이 시간까지 GVIM을 사용 해왔다. 지금 콘솔에서 일하고 많은 것을 놓치고 배우려고 노력하고있다. – Andrey