1
我安裝了vim-airlines,其主題爲Vundle
。我將.vimrc
更改爲以下格式:一些vim航空公司主題不起作用
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
" call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
call vundle#begin('~/.vim/vundle_plugins')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" vim js plugin
Plugin 'pangloss/vim-javascript'
" auto complete
Plugin 'valloric/youcompleteme'
" file explorer
Plugin 'kien/ctrlp.vim'
Plugin 'tpope/vim-surround'
Plugin 'tpope/vim-fugitive'
Plugin 'bling/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
" Plugin 'vim-airline/vim-airline'
"
call vundle#end() " required
" nmap <F8> :TagbarToggle<CR>
let g:airline_theme= 'wombat'
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
" unicode symbols
let g:airline_left_sep = '»'
let g:airline_left_sep = '▶'
let g:airline_right_sep = '«'
let g:airline_right_sep = '◀'
let g:airline_symbols.linenr = '␊'
let g:airline_symbols.linenr = ''
let g:airline_symbols.linenr = '¶'
let g:airline_symbols.branch = '⎇'
let g:airline_symbols.paste = 'ρ'
let g:airline_symbols.paste = 'Þ'
let g:airline_symbols.paste = '∥'
let g:airline_symbols.whitespace = 'Ξ'
set laststatus=2
"set background=light
filetype plugin indent on " required
但沒有任何反應。我的意思是下面的圖片:
甚至有退出vim和重新打開後無主題的變化。我今天安裝了'vim-airline'和vim-airline-theme
。所以他們是最新的。
任何意見表示讚賞。
- 我使用64位Linux Mint的17
- 的Vim 7.4版
什麼命令':AirlineTheme'打印? –
此外,我很困惑,爲什麼你有'Plugin'vim-airline/vim-airline''註釋掉,並使用'Plugin'bling/vim-airline''代替。 –
@sudobangbang我只是試了一下。兩個庫都給了我相同的結果。 – Hadi