Created
September 4, 2013 08:41
-
-
Save copitux/6434354 to your computer and use it in GitHub Desktop.
unite.ctrl-p
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Ctrl-p behaviour {{{ | |
nnoremap <Leader><Leader> :Unite -start-insert file_rec/async<CR> | |
call unite#filters#matcher_default#use(['matcher_fuzzy']) | |
call unite#filters#sorter_default#use(['sorter_reverse']) | |
call unite#custom#source('file_mru,file_rec,file_rec/async,grep,locate', | |
\ 'ignore_pattern', join(['\.git/', 'tmp/', 'bundle/'], '\|')) | |
let g:unite_prompt = '>>> ' | |
let g:unite_winheight = 15 | |
let g:unite_update_time = 200 | |
let g:unite_split_rule = 'botright' | |
let g:unite_data_directory = $HOME.'/.vim/tmp/unite' | |
autocmd FileType unite call s:unite_my_settings() | |
function! s:unite_my_settings() "{{{ | |
" Overwrite settings. | |
nmap <buffer> <ESC> <Plug>(unite_exit) | |
imap <buffer> <C-j> <Plug>(unite_select_next_line) | |
imap <buffer> <C-k> <Plug>(unite_select_previous_line) | |
imap <silent><buffer><expr> <C-s> unite#do_action('split') | |
imap <silent><buffer><expr> <C-v> unite#do_action('vsplit') | |
imap <silent><buffer><expr> <C-t> unite#do_action('tabopen') | |
endfunction "}}} | |
" End: Unite.ctrl-p }}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for sharing. I like the setting that allows me to use
<C-j>
and<C-k>
to move downward or upward!