Kaynağa Gözat

Change vim status plugin from lightline to airline

Neonwave has an airline plugin. Lightline's powerline-like theme is
better, but the airline one is passable.

The 'surarken' airline theme will activate whenever neonwave is set as
the colour scheme.
Weiyi Lou 10 yıl önce
ebeveyn
işleme
c1875f2303

+ 5 - 4
vim/plugins.vim

@@ -28,14 +28,15 @@ Plug 'vim-pandoc/vim-pandoc-syntax'
 " }}}
 
 " Visual {{{
+Plug 'Sclarki/airline-surarken'
+Plug 'Sclarki/neonwave.vim'
 Plug 'altercation/vim-colors-solarized'
-Plug 'itchyny/lightline.vim'
+Plug 'bling/vim-airline'
+Plug 'junegunn/goyo.vim'
+Plug 'junegunn/limelight.vim'
 Plug 'kshenoy/vim-signature'
 Plug 'nathanaelkane/vim-indent-guides'
 Plug 'romainl/flattened'
-Plug 'Sclarki/neonwave.vim'
-Plug 'junegunn/goyo.vim'
-Plug 'junegunn/limelight.vim'
 " }}}
 
 " Text Objects {{{

+ 0 - 1
vim/settings/cursorposition.vim

@@ -12,4 +12,3 @@ if has("autocmd")
   au FileType gitcommit au! BufEnter COMMIT_EDITMSG call setpos('.', [0, 1, 1, 0])
 
 endif
-" }}}

+ 12 - 2
vim/settings/statusline.vim

@@ -1,4 +1,14 @@
-""""""""" Powerline
 set laststatus=2
+set noshowmode " don't show e.g. --INSERT-- with fancy status lines.
+
+" Powerline
 "set rtp+=~/dotfiles/powerline/powerline/powerline/bindings/vim
-set noshowmode " don't show e.g. --INSERT-- since we're using powerline
+
+let g:airline_powerline_fonts = 1
+let g:airline_left_sep=''
+let g:airline_right_sep=''
+
+let g:airline_theme = 'powerlineish'
+if g:colors_name == 'neonwave'
+  let g:airline_theme = 'surarken'
+endif