unite.vim

GitHub - Shougo/unite.vim: Unite and create user interfaces
やっと移行(ネコはまだ)

機能ありまくり...;

if exists('g:loaded_unite')
  let g:unite_source_file_mru_limit = 200
  let g:unite_source_file_mru_filename_format = ''

  nnoremap <silent> fff :<C-u>Unite file<CR>
  nnoremap <silent> ffn :<C-u>Unite buffer<CR>
  nnoremap <silent> ffm :<C-u>Unite file_mru<CR>
  nnoremap <silent> ffs :<C-u>Unite source<CR>

  autocmd MyAutoCmd FileType unite call s:unite_my_settings()
  function! s:unite_my_settings()
    nmap <buffer> <ESC> <Plug>(unite_exit)
    nmap <buffer> <C-[> <Plug>(unite_exit)
    imap <buffer> jj <Plug>(unite_insert_leave)

    nnoremap <silent> <buffer> <expr> <C-j> unite#do_action('split')
    inoremap <silent> <buffer> <expr> <C-j> unite#do_action('split')
    nnoremap <silent> <buffer> <expr> <C-l> unite#do_action('vsplit')
    inoremap <silent> <buffer> <expr> <C-l> unite#do_action('vsplit')
    
    " <C-l>: manual neocomplcache completion.
    inoremap <buffer> <C-l>  <C-x><C-u><C-p><Down>
    
    " Start insert.
    "let g:unite_enable_start_insert = 1
  endfunction
endif