瀏覽代碼

Use airline instead of powerline

Andrew Swistak 11 年之前
父節點
當前提交
ecf17fc862
共有 4 個文件被更改,包括 14 次插入2 次删除
  1. 5 0
      .gitmodules
  2. 2 2
      scripts/install_dotfiles.sh
  3. 1 0
      vim/bundle/vim-airline
  4. 6 0
      vimrc

+ 5 - 0
.gitmodules

@@ -77,3 +77,8 @@
 [submodule "vim/bundle/vim-endwise"]
 	path = vim/bundle/vim-endwise
 	url = https://github.com/tpope/vim-endwise.git
+  ignore = dirty
+[submodule "vim/bundle/vim-airline"]
+	path = vim/bundle/vim-airline
+	url = https://github.com/bling/vim-airline.git
+  ignore = dirty

+ 2 - 2
scripts/install_dotfiles.sh

@@ -44,9 +44,9 @@ ln -fsn "$DIR"/vim/pathogen/autoload "$DIR"/vim/
 mkdir -p "$DIR"/vim/tmp/{backup,swap,undo}
 
 #Very specific to Arch
-read -p "Install boost and powerline? [y/N] " -n 1 -r
+read -p "Install boost [y/N] " -n 1 -r
 if [[ $REPLY =~ ^[Yy]$ ]]; then
-  yaourt -S boost python2-powerline-git
+  yaourt -S boost
 fi
 echo ""
 

+ 1 - 0
vim/bundle/vim-airline

@@ -0,0 +1 @@
+Subproject commit 5a2daf6dfbd6e0df21612a20f95b4285ae8a2603

+ 6 - 0
vimrc

@@ -148,6 +148,12 @@ let g:ctrlp_clear_cache_on_exit = 0
 " Uncomment to show hidden directories.
 "let g:ctrlp_show_hidden = 1
 
+"""""""""""""""""""""""""""""""""""""""""
+" Airline (Powerline replacement)
+"""""""""""""""""""""""""""""""""""""""""
+let g:airline_theme = 'powerlineish'
+let g:airline_powerline_fonts = 1
+
 """""""""""""""""""""""""""""""""""""""""
 " NerdTree
 """""""""""""""""""""""""""""""""""""""""