2015-09-02 5 views
1

Я пробовал несколько раз следовать инструкциям по установке для Powerline, изложенным здесь, но независимо от того, что я делаю, эта строка состояния просто не отображается.Проблемы с установкой Powerline для Vim/Tmux на Mac OSX 10.10.5

Я нахожусь на Yosemite и пытаюсь установить Powerline для Vim с Tmux для среды Python.

Вот мой ~/.vimrc файл:

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('~/some/path/here') 

" let Vundle manage Vundle, required 
Plugin 'VundleVim/Vundle.vim' 

Вот мой ~/.tmux.conf файл:

source '{repository_root}/powerline/bindings/tmux/powerline.conf' 

я вручную установить шрифты (install.sh скрипт просто WASN» t работает для меня), которую вы можете получить here.

Все, что я вижу в Tmux, это стандартная зеленая линия по умолчанию с bash, именем пользователя и информацией о дате. Я знаю, что я, вероятно, пропустил что-то очевидное здесь, но любые предложения о том, что мне нужно, чтобы посмотреть или исправить?

ответ

1

Если вы не хотите попробовать предложение ronkag в попытки ВИМ-авиакомпанию, вот некоторые вещи, чтобы попытаться получить Powerline правильно работает на вашей установке:

1. Вы ~/.vimrc выглядит немного смешно, как будто это может быть недостающее. Вот мой для справки:

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('~/some/path/here') 

" let Vundle manage Vundle, required 
Plugin 'VundleVim/Vundle.vim' 


" plugin on GitHub repo 
Plugin 'tpope/vim-fugitive' 

" Git plugin not hosted on GitHub 
Plugin 'git://git.wincent.com/command-t.git' 


" All of your Plugins must be added before the following line 
call vundle#end()   " required 
filetype plugin indent on " required 
" To ignore plugin indent changes, instead use: 
"filetype plugin on 
" 
" Brief help 
" :PluginList  - lists configured plugins 
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate 
" :PluginSearch foo - searches for foo; append `!` to refresh local cache 
" :PluginClean  - confirms removal of unused plugins; append `!` to auto-approve removal 
" 
" see :h vundle for more details or wiki for FAQ 
" Put your non-Plugin stuff after this line 

source /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/powerline/bindings/vim/plugin/powerline.vim 
set laststatus=2   

if has("gui_running") 
     let s:uname = system("uname") 
      if s:uname == "Darwin\n" 
        set guifont=Inconsolata\ for\ Powerline:h15 
         endif 
        endif 


set guifont=Inconsolata\ for\ Powerline:h15 
let g:Powerline_symbols = 'fancy' 
set encoding=utf-8 
set t_Co=256 
set fillchars+=stl:\ ,stlnc:\ 
set term=xterm-256color 
set termencoding=utf-8 


"these are taken from fullstackpython.com 

" enable syntax highlighting 
syntax enable 

" show line numbers 
set number 

" set tabs to have 4 spaces 
set ts=4 

" indent when moving to the next line while writing code 
set autoindent 

" expand tabs into spaces 
set expandtab 

" when using the >> or << commands, shift lines by 4 spaces 
set shiftwidth=4 

" show a visual line under the cursor's current line 
set cursorline 

" show the matching part of the pair for [] {} and() 
set showmatch 

" enable all Python syntax highlighting features 
let python_highlight_all = 1 

2. Что вы имеете в вашем ~/.tmux.conf файл не выглядит прямо либо. Вы должны указать фактический путь к файлу файла powerline.conf. Например, мой выглядит следующим образом:

source /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/powerline/bindings/tmux/powerline.conf 

3. Предполагая, что вы сделали правильно установить все шрифты из пакета шрифтов (вы должны перепроверить, так как вы сделали это вручную), и это может быть очевидным один, но не забудьте выбрать шрифт Powerline в настройках терминала! Любой шрифт, который имеет «для powerline» в нем, должен работать.

2

Я предлагаю вам дать vim-airline. Он полностью написан в vimscript и очень легкий по сравнению с powerline. Там нет зависимости от python, его очень легко настроить и отлично работает.

Он объединяет очень хорошо с другими плагинами, как tmuxline, promptline,

+0

Спасибо, я проверю vim-авиакомпанию – SeanJarp

Смежные вопросы