kien / ctrlp.vim

Fuzzy file, buffer, mru, tag, etc finder.
kien.github.com/ctrlp.vim
7.26k stars 677 forks source link

Strange issue with ctrlp.vim and vim-airline for gvim #470

Closed lervag closed 11 years ago

lervag commented 11 years ago

Hi,

I suspect this is an issue with vim-airline, see vim-airline issue 156. In case it might be due to issues in both plugins or just in ctrlp.vim, I also open the issue here.

I found a strange issue/inconsistency with vim-airline and ctrlp.vim for gvim, depending on whether ctrlp.vim is loaded or not:

  1. If ctrlp.vim is loaded: The welcome info is not shown.
  2. If ctrlp.vim is not loaded: The default vim-airline colorscheme( dark) is not activated until I issue the command :AirlineTheme dark.

I have reproduced the issue with a minimal vimrc file:

set nocompatible

set rtp+=~/.vim/bundle/ctrlp.vim
set rtp+=~/.vim/bundle/vim-airline

filetype plugin indent on
syntax enable
set keywordprg=":help"
set autoindent
set backspace=indent,eol,start
set ttimeout
set expandtab
set ttimeoutlen=50
set laststatus=2

Screenshot 1: ctrlp.vim is not loaded. vim2

Screenshot 2: ctrlp.vim is loaded. vim1

lervag commented 11 years ago

The issue was already fixed in recent commits from vim-airline.

kien commented 11 years ago

Does (or did) airline detect the present of ctrlp? If the ctrlp.vim script wasn't even loaded, then it probably wasn't its fault if something in airline didn't load as a result. Also, the welcome info can be cleared by changes to the statusline.

lervag commented 11 years ago

I think airline has some sort of ctrlp.vim trigger that fired a change of the statusline. But I did not really get the details of what was wrong. In any case, it was not a fault with ctrlp.vim. :)