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 buffer does not play well with <C-I> / <C-O> #929

Closed yannack closed 9 years ago

yannack commented 9 years ago
set nocompatible
filetype off                   " required for Vundle
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'Shougo/unite.vim'
call vundle#end()            " required
set laststatus=2
let mapleader="\<Space>"
syntax on
set number
set hlsearch
set cursorline
set autowrite       " Automatically save before commands like :next and :make
set hidden      " Hide buffers when they are abandoned

" Unite settings
silent! call unite#filters#matcher_default#use(['matcher_fuzzy'])
silent! call unite#filters#sorter_default#use(['sorter_rank'])
nnoremap <leader>b :Unite buffer -buffer-name=buffers -no-split <CR>
autocmd FileType unite call s:unite_settings()
function! s:unite_settings()
  " Quit unite on backspace from normal mode, or using leader-q
  nnoremap <buffer> <BS> :UniteClose<CR>
  nnoremap <buffer> <leader>q :UniteClose<CR>
endfunction
Shougo commented 9 years ago

Unfortunatelly, I cannot fix it. You should use Unite jump.

Please see the issue. https://github.com/Shougo/unite.vim/issues/278

yannack commented 9 years ago

OK I understand. Thanks for the link, using the -wipe option is actually a workable solution for me in most cases. I could not find much documentation about :Unite jump, but it also looks interesting. I am pretty sure we could remap <C-O> and <C-i> using :Unite jump, but for now, the -wipe is enough. Thanks, @Shougo !