Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
abdulsattar opened this issue Sep 1, 2014 · 2 comments
Closed

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

abdulsattar opened this issue Sep 1, 2014 · 2 comments

Comments

@abdulsattar
Copy link

  • Problems summary
    :Unite -start-insert file_rec/async:! runs fine when I run it for the first time. However, when I run it the second time, it just hangs vim.
  • Expected
    It should open once again.
  • Environment Information
  • Minimal vimrc less than 50 lines
" 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"}}}
  • How to reproduce
    1. startup vim (Write with option arguments if necessary).
    2. Run :Unite -start-insert file_rec/async:!
    3. Close the Unite window
      3.Run the command again.
  • Screen shot (if possible)
    2014-09-01-112252_1600x900_scrot

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

@Shougo
Copy link
Owner

Shougo commented Sep 2, 2014

#701

It is duplicated issue.

@Shougo
Copy link
Owner

Shougo commented Feb 3, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants