Shougo / unite.vim

:dragon: Unite and create user interfaces
http://www.vim.org/scripts/script.php?script_id=3396
Other
2.85k stars 223 forks source link

:Unite -start-insert file_rec/async:! hangs vim #719

Closed abdulsattar closed 10 years ago

abdulsattar commented 10 years ago
" Your vimrc
call unite#filters#matcher_default#use(['matcher_fuzzy'])
call unite#custom#source('buffer,file,file_mru,file_rec', 'sorters', 'sorter_rank')
autocmd FileType unite call s:unite_my_settings()
function! s:unite_my_settings()"{{{
  " Overwrite settings.

  nmap <buffer> <ESC>      <Plug>(unite_exit)
  imap <buffer> kk      <Plug>(unite_insert_leave)
  "imap <buffer> <C-w>     <Plug>(unite_delete_backward_path)

  imap <buffer><expr> k unite#smart_map('k', '')
  imap <buffer> <TAB>   <Plug>(unite_select_next_line)
  imap <buffer> <C-w>     <Plug>(unite_delete_backward_path)
  imap <buffer> '     <Plug>(unite_quick_match_default_action)
  nmap <buffer> '     <Plug>(unite_quick_match_default_action)
  imap <buffer><expr> x
          \ unite#smart_map('x', "\<Plug>(unite_quick_match_choose_action)")
  nmap <buffer> x     <Plug>(unite_quick_match_choose_action)
  nmap <buffer> <C-z>     <Plug>(unite_toggle_transpose_window)
  imap <buffer> <C-z>     <Plug>(unite_toggle_transpose_window)
  imap <buffer> <C-y>     <Plug>(unite_narrowing_path)
  nmap <buffer> <C-y>     <Plug>(unite_narrowing_path)
  nnoremap <silent><buffer><expr> l
          \ unite#smart_map('l', unite#do_action('default'))

  let unite = unite#get_current_unite()
  if unite.buffer_name =~# '^search'
    nnoremap <silent><buffer><expr> r     unite#do_action('replace')
  else
    nnoremap <silent><buffer><expr> r     unite#do_action('rename')
  endif

  nnoremap <silent><buffer><expr> cd     unite#do_action('lcd')
  nnoremap <buffer><expr> S      unite#mappings#set_current_filters(
          \ empty(unite#mappings#get_current_filters()) ?
          \ ['sorter_reverse'] : [])

  imap <buffer><C-f> <Plug>(unite_redraw)
  nmap <buffer><C-f> <Plug>(unite_redraw)

  imap <silent><buffer><expr> <C-h>     unite#do_action('left')
  nmap <silent><buffer><expr> <C-h>     unite#do_action('left')
  imap <silent><buffer><expr> <C-l>     unite#do_action('right')
  nmap <silent><buffer><expr> <C-l>     unite#do_action('right')
  imap <silent><buffer><expr> <C-k>     unite#do_action('above')
  nmap <silent><buffer><expr> <C-k>     unite#do_action('above')
  imap <silent><buffer><expr> <C-j>     unite#do_action('below')
  nmap <silent><buffer><expr> <C-j>     unite#do_action('below')
endfunction"}}}

This is the screenshot when I run it the second time. It is stuck and I can't do anything (except close vim).

Shougo commented 10 years ago

https://github.com/Shougo/unite.vim/issues/701

It is duplicated issue.

Shougo commented 9 years ago

Fixed in Vim 7.4.615

https://groups.google.com/forum/#!topic/vim_dev/pXjj7rww5RY