(已经装了pathogen插件),在bundle下,git clone https://github.com/Lokaltog/powerline
之后编辑~/.vimrc,不知道是否受其他设置的影响,.vimrc内容如下:
代码: 全选
call pathogen#infect()
syntax on
filetype plugin indent on
colorscheme jellybeans
set background=dark
set nu
set modeline
set tabstop=4
"set expandtab
set shiftwidth=4
"set softtabstop=4
set list
" Shortcut to rapidly toggle `set list`
nmap <leader>l :set list!<CR>
" Use the same symbols as TextMate for tabstops and EOLs
set listchars=tab:▸\ ,eol:¬
" Invisible character colors
highlight NonText guifg=#4a4a59
highlight SpecialKey guifg=#4a4a59
" powerline settings
let g:Powerline_symbols='fancy'
set fillchars+=stl:\ ,stlnc:\
set nocompatible
set t_Co=256
let g:Powerline_cache_enabled=1
let g:Powerline_cache_file='~/.vim/bundle/powerline/Powerline.cache'
set laststatus=2
set rtp+='~/.vim/bundle/powerline/powerline/bindings/vim'
打开vim,看不到powerline应有的状态栏,状态栏是普通的那种。