Skip to content

Instantly share code, notes, and snippets.

@lcjury
Created October 1, 2018 14:35
Show Gist options
  • Save lcjury/2aca7858b23bcffb364f26fe1ebdbfa1 to your computer and use it in GitHub Desktop.
Save lcjury/2aca7858b23bcffb364f26fe1ebdbfa1 to your computer and use it in GitHub Desktop.
Vim airline skipping parts with dynamic content
call pathogen#infect()
call pathogen#helptags()
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
call airline#parts#define_condition('ffenc', "&ff != 'unix' || &fenc != 'utf-8'")
"let g:airline_skip_empty_sections = 1
Plugin 'vim-airline/vim-airline'
call vundle#end()
filetype plugin indent on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment