Vim Powerlineは、2つのバッファが開いているときにのみ機能します。

Vim Powerlineは、2つのバッファが開いているときにのみ機能します。

問題があります。ビームパワーラインはめ込む。インストールしましたが、両方のバッファを開くときにのみ機能します。以下に、問題と私の問題を視覚的に説明する写真があります.vimrc。私が間違って設定したのでしょうか?


単一バッファ

バッファを使用しない

2つのバッファ

2つのバッファを使う

.vimrcコンテンツ

" 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

それだけの価値があるので使用しています。(いくつかのアドインを備えたCygwin)Windows 7。

ベストアンサー1

私はVimが単一のウィンドウのステータスバーを表示せず、2つのウィンドウが開いているときにのみ表示することに気付きました。set laststatus=2にこれを含めて上書きすることができます。 これにより、ステータスが.vimrc常に表示されます。

おすすめ記事