2014-02-19 2 views
6

unite.vim에서 검색 한 후 후보자를 엽니 다. 검색 명령을 다시 실행하지 않고도 다음 단계로 쉽게 이동할 수 있습니까? 유사한 플러그인 (ack.vim, git-grep)은 퀵 픽스 창을 사용하므로 :cn:cp을 입력하면 다음/이전 결과로 이동할 수 있습니다. unite.vim에 비슷한 항목이 있습니까?Unite.vim에서 결과 (후보자)를 탐색하는 방법은 무엇입니까?

감사합니다.

답변

7

결과를 Quickfix 또는 위치 목록에 넣을 수있는 방법을 찾을 수 없었지만 Unite가 해당 작업을 포함하도록 확장 할 수는있을 것입니다.

한편, 단결 문서에서이 작은 exerpt 당신이 다시 엽니 다 단결 단지 최근에 버퍼 도울 수 있었다 개방 :

내의 vimrc에 다음과 같은 방법이 사용
:UniteResume [{options}] [{buffer-name}] *:UniteResume* 
     Reuses the unite buffer named {buffer-name} that you opened 
     previously. Narrowing texts or candidates are 
     as-is. If {options} are given, context information gets 
     overridden. 

     Note: Reuses the last unite buffer you used in current tab if 
     you skip specifying {buffer-name}. 

:

" Press <leader>ll to re-open last Unite buffer 
nnoremap <silent><leader>ll :<C-u>UniteResume<CR> 
워드 프로세서에서

또 다른 유용한 조각 : 예를 들어

-no-quit 
    Doesn't close unite buffer after firing an action. Unless you 
    specify it, a unite buffer gets closed when you selected an 
    action which is "is_quit". 

    -keep-focus 
    Keep the focus on a unite buffer after firing an action. 
    Note: This option is used with "-no-quit" option. 

, 당신은 폐쇄 또는 항목을 선택할 때 뭉 칩시 버퍼를 해제 초점없이,

nnoremap <silent><leader>lg :<C-u>Unite -no-quit -keep-focus grep<CR> 

는 소스 파일을 통해 grep을 할 <leader>lg을 눌러 할 수 있으려면 결합 할 수있다.

6

모두에게 좋은 소식입니다. Unite repo에서 귀하의 요청과 함께 issue-724을 작성했으며 눈 깜짝 할 사이에 implemented되었습니다! 영광을 Shougo! 워드 프로세서

:

:UniteNext [{buffer-name}] *:UniteNext* 
Do the default action with next candidates in the unite buffer 
with {buffer-name}. 
You can use it like |:cnext|. 

:UnitePrevious [{buffer-name}] *:UnitePrevious* 
Do the default action with previous candidates in the unite 
buffer with {buffer-name}. 
You can use it like |:cprevious|.