Learn VIM
  • Vim Hands-On Tutorial (Learning Vi and Vims)
  • Vim Hands-On Tutorial(Learning Vim)
    • Chapter 1: Cursor Movement
    • Chapter 2: Opening Files, Finding Content
    • Chapter 3: Modifying and Saving Files
    • Chapter 4: Some Tips
    • Chapter 5: Splitting Windows and Tabs
    • Chapter 6: Block Operations
    • Chapter 7: Vim Macros
    • Vim Modes
    • Vim Plugins
    • plugins
      • Airline & Themes
      • EasyAlign
      • Plugin Recommendations
      • NERDTree
      • surround.vim
  • Vim 实操教程(Learning Vim)
    • 第一章:光标移动
    • 第二章:打开文件、查找内容
    • 第三章:文档的修改与保存
    • 第四章:一些小技巧
    • 第五章:分屏与标签页
    • 第六章:块操作
    • 第七章:Vim 中的宏
    • Vim 的模式
    • Vim 插件
    • plugins
      • Airline & Themes
      • EasyAlign
      • 插件推荐
      • NERDTree
      • surround.vim
Powered by GitBook
On this page
  • Project address
  • Installation

Was this helpful?

  1. Vim Hands-On Tutorial(Learning Vim)
  2. plugins

Airline & Themes

Airline displays a more user-friendly status bar in Vim, and with a nice color scheme, it's a lot more fun to work with.

Project address

  • Airline https://github.com/vim-airline/vim-airline

  • Airline Themes https://github.com/vim-airline/vim-airline-themes

Installation

Add .vimrc configuration.

" Install both plugins at the same time
Plug 'vim-airline/vim-airline' | Plug 'vim-airline/vim-airline-themes'

Execute :source ~/.vimrc in Vim to reload the config file.

Execute :PlugInstall to install the Airline and Aairline Themes plugins.

Add the following setting to .vimrc to make Airline effective.

``vim set laststatus=2 " Always show status bar

" Airline let g:airline#extensions#tabline#enabled=1 " enable tab bar


> Reload the config file to make it work, if that doesn't work try restarting Vim

You should now see a status bar displayed underneath Vim, displaying information that will typically contain **Current Mode**, **Current File**, **Current File**, **Current File**, **Current File**, and **Current File**.
**Current File**, **File Type**, **File Encoding**, and **Current Column Information**.

Since we also have the Airline Themes plugin installed, we can set the Airline style as follows.

> Execute `:AirlineTheme simple` to apply the `simple` style, or modify the `.vimrc` file to add a file like
> The following configuration:

```vim
let g:airline_theme='simple'
PreviouspluginsNextEasyAlign

Last updated 1 year ago

Was this helpful?

Airline Themes contains a large number of styles, which can be found in the project's The styles listed there can be applied.

For more details and renderings, please refer to the .

Styles folder
project address