ubuntu12.04下vim安装powerline插件看不到任何效果

Vim、Emacs配置和使用
回复
mrt
帖子: 5
注册时间: 2011-05-03 16:03

ubuntu12.04下vim安装powerline插件看不到任何效果

#1

帖子 mrt » 2013-06-10 14:21

步骤如下:
(已经装了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'
接着安装好patched powerline fonts并把powerline/font/10-powerline...复制到/etc/fonts/conf.avail,ln -s /etc/fonts/conf.avail/10-powerline... /etc/fonts/conf.d/
打开vim,看不到powerline应有的状态栏,状态栏是普通的那种。
October21
帖子: 42
注册时间: 2012-10-29 19:56
系统: Ubuntu 12.04 LTS

Re: ubuntu12.04下vim安装powerline插件看不到任何效果

#2

帖子 October21 » 2013-06-10 17:55

"powerline
"set guifont=PowerlineSymbols\ for\ Powerline
set nocompatible
set t_Co=256
let g:Powerline_symbols = 'fancy'
set laststatus=2 "(Always display the statusline in all windows)
"set noshowmode "(Hide the default mode text (e.g. -- INSERT -- bel$
mrt
帖子: 5
注册时间: 2011-05-03 16:03

Re: ubuntu12.04下vim安装powerline插件看不到任何效果

#3

帖子 mrt » 2013-06-10 18:09

[SOLVED]
Lokaltog有两个powerline仓库,原先我clone的是powerline仓库,改成vim-powerline仓库就好了。

感谢October21! :em11
回复