Shougo / neocomplcache.vim

Ultimate auto-completion system for Vim.
http://www.vim.org/scripts/script.php?script_id=2620
1.72k stars 135 forks source link

neocomplcache closes DiffGitCached window from vim-fugitive #424

Closed esamattis closed 11 years ago

esamattis commented 11 years ago

I use following vim-fugitive setup to display diff listing while writing a git commit message

autocmd FileType gitcommit DiffGitCached | wincmd p

But when neocomplecache is enabled it will close the diff window when fourth letter is entered to commit message.

Full .vimrc:

filetype plugin on
call pathogen#infect('~/.vim/bundle')
autocmd FileType gitcommit DiffGitCached | wincmd p
let g:neocomplcache_enable_at_startup = 1
$ ls ~/.vim/bundle
fugitive  neocomplcache

I'm using neocomplcache from 8290c4dfcae7c0833f4620a39ccacfbf391339c8 and fugitive from tpope/vim-fugitive#3b5f715262e0ec03cbdd80d8858039b47af34365

Shougo commented 11 years ago
let g:neocomplcache_enable_auto_close_preview = 0
esamattis commented 11 years ago

I guess that's some kind of a feature?

Your suggested workaround works well anyhow. Thanks.

I'm using it only for gitcommit filetype if anyone is interested:

autocmd FileType gitcommit let g:neocomplcache_enable_auto_close_preview = 0 
Shougo commented 11 years ago

Because DiffGitCached window is set 'preview' option. neocomplcache will close preview window in default.