O Vim Powerline está funcionando apenas quando 2 buffers estão abertos

0

Estou tendo alguns problemas com o plug-in do Vim Powerline . Eu instalei, mas só está funcionando quando eu tenho dois buffers abertos. Abaixo estão as imagens que descrevem o problema visualmente, bem como meu .vimrc . Eu configurei algo errado?

buffer único

Doisbuffers

.vimrc content

" Use Vim settings, rather than Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible

" In many terminal emulators the mouse works just fine, thus enable it.
if has('mouse')
  set mouse=a
endif

" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
  syntax on
  set hlsearch
endif

" Only do this part when compiled with support for autocommands.
if has("autocmd")

  " Enable file type detection.
  " Use the default filetype settings, so that mail gets 'tw' set to 72,
  " 'cindent' is on in C files, etc.
  " Also load indent files, to automatically do language-dependent indenting.
  filetype plugin indent on

  " Put these in an autocmd group, so that we can delete them easily.
  augroup vimrcEx
  au!

  " For all text files set 'textwidth' to 78 characters.
  autocmd FileType text setlocal textwidth=78

  " When editing a file, always jump to the last known cursor position.
  " Don't do it when the position is invalid or when inside an event handler
  " (happens when dropping a file on gvim).
  " Also don't do it when the mark is in the first line, that is the default
  " position when opening a file.
  autocmd BufReadPost *
    \ if line("'\"") > 1 && line("'\"") <= line("$") |
    \   exe "normal! g'\"" |
    \ endif

  augroup END

else

  set autoindent        " always set autoindenting on

endif " has("autocmd")

" Convenient command to see the difference between the current buffer and the
" file it was loaded from, thus the changes you made.
" Only define it when not defined already.
if !exists(":DiffOrig")
  command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis
          \ | wincmd p | diffthis
endif

if has('langmap') && exists('+langnoremap')
  " Prevent that the langmap option applies to characters that result from a
  " mapping.  If unset (default), this may break plugins (but it's backward
  " compatible).
  set langnoremap
endif

" Set tab width stuff
set tabstop=4 softtabstop=0 noexpandtab shiftwidth=4

" Set to use spaces in git commits
autocmd FileType gitcommit setlocal tabstop=4 softtabstop=0 expandtab shiftwidth=4

" Show invisibles
set list

" Set invisibles
set lcs=eol:$,tab:»·,trail:×,extends:…,precedes:…

" Solarized colors
syntax enable
set background=dark
colorscheme solarized

" Powerline
python from powerline.vim import setup as powerline_setup
python powerline_setup()
python del powerline_setup

Por que vale a pena, estou usando o Babun (Cygwin com alguns extras) no Windows 7.

    
por Captain Man 02.02.2016 / 20:54

1 resposta

1

Eu aprendi que o Vim não mostra nenhuma linha de status para uma única janela, apenas quando duas são abertas mostra. Isso pode ser substituído, incluindo set laststatus=2 no seu .vimrc , isso faz com que o status seja sempre exibido.

    
por 04.02.2016 / 00:02

Tags