Code Monkey home page Code Monkey logo

vim-airline-themes's Introduction

vim-airline

Say Thanks! reviewdog CI

Lean & mean status/tabline for vim that's light as air.

img

When the plugin is correctly loaded, there will be a nice statusline at the bottom of each vim window.

That line consists of several sections, each one displaying some piece of information. By default (without configuration) this line will look like this:

+-----------------------------------------------------------------------------+
|~                                                                            |
|~                                                                            |
|~                     VIM - Vi IMproved                                      |
|~                                                                            |
|~                       version 8.2                                          |
|~                    by Bram Moolenaar et al.                                |
|~           Vim is open source and freely distributable                      |
|~                                                                            |
|~           type :h :q<Enter>          to exit                               |
|~           type :help<Enter> or <F1>  for on-line help                      |
|~           type :help version8<Enter> for version info                      |
|~                                                                            |
|~                                                                            |
+-----------------------------------------------------------------------------+
| A | B |                     C                            X | Y | Z |  [...] |
+-----------------------------------------------------------------------------+

The statusline is the colored line at the bottom, which contains the sections (possibly in different colors):

section meaning (example)
A displays the mode + additional flags like crypt/spell/paste (INSERT)
B Environment status (VCS information - branch, hunk summary (master), battery level)
C filename + read-only flag (~/.vim/vimrc RO)
X filetype (vim)
Y file encoding[fileformat] (utf-8[unix])
Z current position in the file
[...] additional sections (warning/errors/statistics) from external plugins (e.g. YCM, syntastic, ...)

The information in Section Z looks like this:

10% ☰ 10/100 ln : 20

This means:

10%     - 10 percent down the top of the file
☰ 10    - current line 10
/100 ln - of 100 lines
: 20    - current column 20

For a better look, those sections can be colored differently, depending on various conditions (e.g. the mode or whether the current file is 'modified')

Features

Installation

This plugin follows the standard runtime path structure, and as such it can be installed with a variety of plugin managers:

Plugin Manager Install with...
Pathogen git clone https://github.com/vim-airline/vim-airline ~/.vim/bundle/vim-airline
Remember to run :Helptags to generate help tags
NeoBundle NeoBundle 'vim-airline/vim-airline'
Vundle Plugin 'vim-airline/vim-airline'
Plug Plug 'vim-airline/vim-airline'
VAM call vam#ActivateAddons([ 'vim-airline' ])
Dein call dein#add('vim-airline/vim-airline')
minpac call minpac#add('vim-airline/vim-airline')
pack feature (native Vim 8 package feature) git clone https://github.com/vim-airline/vim-airline ~/.vim/pack/dist/start/vim-airline
Remember to run :helptags ~/.vim/pack/dist/start/vim-airline/doc to generate help tags
manual copy all of the files into your ~/.vim directory

Straightforward customization

If you don't like the defaults, you can replace all sections with standard statusline syntax. Give your statusline that you've built over the years a face lift.

image

Themes

Themes have moved to another repository as of this commit.

Install the themes as you would this plugin (Vundle example):

Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'

See vim-airline-themes for more.

Automatic truncation

Sections and parts within sections can be configured to automatically hide when the window size shrinks.

image

Smarter tab line

Automatically displays all buffers when there's only one tab open.

tabline

This is disabled by default; add the following to your vimrc to enable the extension:

let g:airline#extensions#tabline#enabled = 1

Separators can be configured independently for the tabline, so here is how you can define "straight" tabs:

let g:airline#extensions#tabline#left_sep = ' '
let g:airline#extensions#tabline#left_alt_sep = '|'

In addition, you can also choose which path formatter airline uses. This affects how file paths are displayed in each individual tab as well as the current buffer indicator in the upper right. To do so, set the formatter field with:

let g:airline#extensions#tabline#formatter = 'default'

Here is a complete list of formatters with screenshots:

default

image

jsformatter

image

unique_tail

image

unique_tail_improved

image

Seamless integration

vim-airline integrates with a variety of plugins out of the box. These extensions will be lazily loaded if and only if you have the other plugins installed (and of course you can turn them off).

image

image

image

image

image

image

image

vim-airline-vimagit-demo

vim-flog-airline-demo

image

image

airline-promptline-sc

papercolor_with_ctrlspace

image

image

image

image

image

image

Extras

vim-airline also supplies some supplementary stand-alone extensions. In addition to the tabline extension mentioned earlier, there is also:

whitespace

image

statusline on top

The statusline can alternatively be drawn on top, making room for other plugins to use the statusline: The example shows a custom statusline setting, that imitates Vims default statusline, while allowing to call custom functions. Use :let g:airline_statusline_ontop=1 to enable it.

image

Configurable and extensible

Fine-tuned configuration

Every section is composed of parts, and you can reorder and reconfigure them at will.

image

Sections can contain accents, which allows for very granular control of visuals (see configuration here).

image

Extensible pipeline

Completely transform the statusline to your liking. Build out the statusline as you see fit by extracting colors from the current colorscheme's highlight groups.

allyourbase

Rationale

There's already powerline, why yet another statusline?

  • 100% vimscript; no python needed.

What about vim-powerline?

  • vim-powerline has been deprecated in favor of the newer, unifying powerline, which is under active development; the new version is written in python at the core and exposes various bindings such that it can style statuslines not only in vim, but also tmux, bash, zsh, and others.

Where did the name come from?

I wrote the initial version on an airplane, and since it's light as air it turned out to be a good name. Thanks for flying vim!

Documentation

:help airline

Integrating with powerline fonts

For the nice looking powerline symbols to appear, you will need to install a patched font. Instructions can be found in the official powerline documentation. Prepatched fonts can be found in the powerline-fonts repository.

Finally, you can add the convenience variable let g:airline_powerline_fonts = 1 to your vimrc which will automatically populate the g:airline_symbols dictionary with the powerline symbols.

FAQ

Solutions to common problems can be found in the Wiki.

Performance

Whoa! Everything got slow all of a sudden...

vim-airline strives to make it easy to use out of the box, which means that by default it will look for all compatible plugins that you have installed and enable the relevant extension.

Many optimizations have been made such that the majority of users will not see any performance degradation, but it can still happen. For example, users who routinely open very large files may want to disable the tagbar extension, as it can be very expensive to scan for the name of the current function.

The minivimrc project has some helper mappings to troubleshoot performance related issues.

If you don't want all the bells and whistles enabled by default, you can define a value for g:airline_extensions. When this variable is defined, only the extensions listed will be loaded; an empty array would effectively disable all extensions (e.g. :let g:airline_extensions = []).

Also, you can enable caching of the various syntax highlighting groups. This will try to prevent some of the more expensive :hi calls in Vim, which seem to be expensive in the Vim core at the expense of possibly not being one hundred percent correct all the time (especially if you often change highlighting groups yourself using :hi commands). To set this up do :let g:airline_highlighting_cache = 1. A :AirlineRefresh will however clear the cache.

In addition you might want to check out the dark_minimal theme, which does not change highlighting groups once they are defined. Also please check the FAQ for more information on how to diagnose and fix the problem.

Screenshots

A full list of screenshots for various themes can be found in the Wiki.

Maintainers

The project is currently being maintained by Christian Brabandt and Bailey Ling.

If you are interested in becoming a maintainer (we always welcome more maintainers), please go here.

License

MIT License. Copyright (c) 2013-2021 Bailey Ling & Contributors.

vim-airline-themes's People

Contributors

bdesham avatar bling avatar blueyed avatar bootleq avatar chartoin avatar chenaren avatar choco avatar chrisbra avatar crazymaster avatar danrneal avatar deathlyfrantic avatar dikiaap avatar donearm avatar edkolev avatar fireflowerr avatar freeo avatar get-me-power avatar green-s avatar itchyny avatar joedicastro avatar joshdick avatar mattn avatar mhartington avatar mhinz avatar notpratheek avatar oblique avatar softmoth avatar uvicorn avatar xinleibird avatar zdm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vim-airline-themes's Issues

tabline buffers color

I have let g:airline#extensions#tabline#enabled = 1 option in my .vimrc, and it seems like top-right buffers inherits color from visual mode, is there any property beside visual mode color that i can change to modify that color separetly?

How to change text colors?

Hey, how do I change the color of NORMAL and line count texts(foreground color)?
Also, how to convert 16 colors to 256 colorspace?
i.e. I'm currently doing
let s:cterm01 = "00"
how to change it do
let s:cterm01 = 234(or whatever equivalent number is)?

AirlineTheme not an editor command

i added Plugin 'vim-airline/vim-airline-themes' and ran :PluginInstall!

~/.vimrc

set nocompatible
filetype off

set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'vim-airline/vim-airline-themes'

call vundle#end()

filetype plugin indent on
syntax on

set wildmenu
set ruler
set number
set backspace=indent,eol,start
set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc,.png,.jpg
set mouse=a
set clipboard=unnamedplus

bubblegum theme isn't autodetected for bubblegum-256-dark colorscheme

Is there a precondition that a vim-airline theme name must exactly match a colorscheme name in order for vim-airline to automatically detect the proper AirlineTheme to apply when :colorscheme is run? ⛅

In this case, the vim-airline theme name is "bubblegum" and the colorscheme name is "bubblegum-256-dark". 🎌

Base 16: Light theme variants.

'base16-summerfruit' and 'base16-tomorrow' match with the dark colour schemes. I think it would be great if the light themes were also supported.

Papercolor theme doesn't change color with modes

Using the papercolor theme, changing from normal to insert/visual/replace won't change the airline color. It would be great if it did!

Meanwhile I'm using the cool theme, which works as expected.

E116: Invalid arguments for function <SNR>44_airline_theme

Error

Getting E116: Invalid arguments for function <SNR>44_airline_theme when issuing the command :AirlineTheme bubblegum for instance. Doesn't matter what theme. The default theme does load though.

Specs

The weird thing is, I reinstalled both gvim/vim, airline and airline-themes on both my desktop PC and my laptop which both run Arch, and this issue is only happening on my laptop...

Cannot install with :PlugInstall in nvim

I get this when trying to install the plugin with nvim

image

holst@puff ~ 
$ nvim --version
NVIM 0.2.0-dev
Build type: RelWithDebInfo
Compilation: /usr/bin/x86_64-linux-gnu-gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -g -DDISABLE_LOG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -DHAVE_CONFIG_H -D_GNU_SOURCE -I/build/neovim-38GZXR/neovim-0.1.7ubuntu1+git201701281330+3091+23~ubuntu16.04.1/build/config -I/build/neovim-38GZXR/neovim-0.1.7ubuntu1+git201701281330+3091+23~ubuntu16.04.1/src -I/build/neovim-38GZXR/neovim-0.1.7ubuntu1+git201701281330+3091+23~ubuntu16.04.1/.deps/usr/include -I/build/neovim-38GZXR/neovim-0.1.7ubuntu1+git201701281330+3091+23~ubuntu16.04.1/.deps/usr/include -I/build/neovim-38GZXR/neovim-0.1.7ubuntu1+git201701281330+3091+23~ubuntu16.04.1/.deps/usr/include -I/build/neovim-38GZXR/neovim-0.1.7ubuntu1+git201701281330+3091+23~ubuntu16.04.1/.deps/usr/include -I/build/neovim-38GZXR/neovim-0.1.7ubuntu1+git201701281330+3091+23~ubuntu16.04.1/.deps/usr/include -I/build/neovim-38GZXR/neovim-0.1.7ubuntu1+git201701281330+3091+23~ubuntu16.04.1/.deps/usr/include -I/usr/include -I/build/neovim-38GZXR/neovim-0.1.7ubuntu1+git201701281330+3091+23~ubuntu16.04.1/build/src/nvim/auto -I/build/neovim-38GZXR/neovim-0.1.7ubuntu1+git201701281330+3091+23~ubuntu16.04.1/build/include
Compiled by root@lgw01-31

Optional features included (+) or not (-): +acl   +iconv    +jemalloc +tui      
For differences from Vim, see :help vim-differences

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"


holst@puff ~ 
$ 

Saving a buffer doesn't remove highlight in the buffer line

I noticed that current buffer background in the buffer line is not updated after saving the buffer. Switching the buffer back and forth does update the color.

Some facts:

  • This happens only when at least two buffers are open
  • The issue was not present before splitting vim airline themes into a separate repo
  • I'm using base16-solarized theme, but I don't think this is the case

How to reproduce:

  1. Open two files. Current buffer has blue background.
  2. Modify the file. Current buffer has green background and a + after the filename
  3. Save the file. Current buffer background is still green, though it should go back to blue. The + is gone from the filename.
  4. Switch to next buffer and go back. Current buffer is blue, as it should be.

How to customize a theme?

I found that only a couple of colors doesn't suit my taste, but I can't found any documentation about just changing one or two colors.

Judging by the screenshots, in my laptop the bubblegum airline theme looks brighter.

Issue when using with neovim

My neovim used to display airline well, but after I updated vim-airline and install vim-airline-themes, the arrows are not rendered right:
neovim
Everything seems ok if I use vim:
vim
Here're some of my airline-related config (I'm using same config for both vim and neovim)

autocmd vimenter * AirlineTheme bubblegum
let g:airline#extensions#tabline#enabled = 1
let g:airline_powerline_fonts = 1

Theme creation documentation

I'm the author of the midnight.vim (and midnight2.vim, they're the same now) colorscheme. I recently began using neovim and took the opportunity to find new plugins. Vim-airline is one but none of the colorschemes match well, and I'd like to create my own to match my colorscheme. The documentation for everything that is in play when creating a vim-airline theme is severely lacking. Additionally, the mechanism for specifying colors is completely different than colorscheme maintainers are used to.

Theming the statusline is not something that is well documented, such as the colors that are applied when a buffer is modified, and inactive. I resorted to :echo-ing the color palette, and hand formatting the several hundred lines of the palette before it began to make sense. Even then, things like 'airline_c50_to_airline_x' and 'airline_c32_to_airline_x' are cryptic, to say the least. It will take me some time yet, to figure out all the options I have available to me and what each of these things does and when. I will be doing it by trial and error, but it would be nice if the theming mechanism, events, states, and other things were clearly documented.

Duplicate help tag g:airline_base16_improved_contrast

Prior to commit 6565b2 on 18 December 2016 the help tag g:airline_base16_improved_contrast already existed in airline-themes.txt. That commit introduced the same help tag a second time. The duplicate tags are on lines 154 and 177 of the current version of airline-themes.txt.

Powerline symbols for badwolf theme in GUI mode are all white

I'd like to use VimR as my default neovim interface. However, when using the badwolf theme, all of the powerline 'arrow' symbols are white, which is not the case when running neovim in a terminal. The issue is pictured below (VimR is on top, exhibiting the incorrect colors, iTerm 2 is on the bottom, showing the proper behavior).

powerline-error

What am I doing wrong?

set nocompatible              " be iMproved, required
filetype off                  " required

set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

Plugin 'VundleVim/Vundle.vim'

Bundle 'Lokaltog/vim-easymotion'

Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'

call vundle#end()            " required


syntax on

Bundle 'nerdtree'

colorscheme atom-dark
set mouse=a
set number

autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif

map <C-n> :NERDTreeToggle<CR>

and when I run :AirlineTheme simple nothing changes?

base16 templates

I am currently working on base16-gruvbox schemes.
What I see here; quite a lot of similar code; looks like great candidate for base16 template.

Generating gui and cterm colors is straightforward (https://github.com/chriskempson/base16-vim/blob/master/templates/default.mustache).

Issue is with differences between schemes - each one can define its own versions of colors for modes. So for me it would be best to have base16-gruvbox-airline-template instead of base16-aitline-template (like one degree of freedom more).

Have you thought about it?

Luna theme has two extra characters

To the right of my statusline there's two red < one of them with a red background. Everything else is just fine but my OCD is kicking in. Any clues on how to remove them would be very much appreciated.

image

Jellybeans: low contrast white-on-blue in Normal mode

After the recent colour update for Jellybeans (PR #7), the blue colour on the status bar in Normal mode is too bright and it makes the white text have a very low contrast. The old blue was darker.

I do think the new blue looks better as part of the JB theme, but perhaps it would be nicer if the text NORMAL (and the right hand side part) was darker?

Fonts partly displayed wrong

I installed the powerline fonts and tried to make the right settings in my vimrc (did I miss something)?

You can see, every symbol is displayed properly in the help file, but not in the real powerline.

screenshot from 2017-03-24 10-49-04

What is the problem here?

AirlineTheme command not working

Hi there - when using the old repo (vim-airline), I have access to the AirlineTheme command, and can set any themes (except now, there are non in the repo - just "dark"). However, when I replace that with vim-airline-themes (to get access to the themes), the AirlineTheme command does not exist, and so I cannot set any time. Likewise, if I revert back, the command once again appears (so it's not my process, as far as I can tell). Are both repo's supposed to be used in conjunction somehow?

My Vim game is not superb, so I haven't been able to figure this one out. Using Pathogen by the way. Any help would be appreciated :)

Issue when loading the theme

I have Janus Vim distribution and I have tried to do the following in my .vimrc.before

" Airline Theme
let g:airline_theme = 'powerlineish'

If I do $ vim . powerlineish is well displayed at left side but right side has not loaded the theme properly, even if I have not chosen any Theme in my .vimrc.before and dark is default theme...
screen shot 2016-02-01 at 6 51 45 pm
If I resize the terminal or do <C-w>l to go Right or open a file, then the Theme is loaded at Right side. The issue does not happen when I try to edit a file directly ex. $ vim hello.txt
screen shot 2016-02-01 at 7 04 07 pm
The only way to get themes working well when editing a directory $ vim . is by adding this into my vimrc.after

" Airline Theme
au VimEnter * AirlineTheme powerlineish

screen shot 2016-02-01 at 7 16 13 pm

Vice airline theme error on load

I'm trying to use the theme "vice" introduced in this commit but I can't seem to get it working. Using either vim-plug or manual cloning to install this set of themes, the vice.vim file does get installed. If I manually set the theme then I get this error. If I set it in my init.vim I get

Could not resolve airline theme "vice". Themes have been migrated to github.com/vim-airline/vim-airline-themes.

But it is installed and an included theme.

My init.vim (for neovim) is below:

" Plugins {{{

"automatic installation of vim-plug 

if empty(glob('~/.config/nvim/autoload/plug.vim'))
  silent !curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  autocmd VimEnter * PlugInstall
endif

set rtp+=~/.vim/bundle/Vundle.vim
call plug#begin('~/.config/nvim/bundle')

  Plug 'junegunn/vim-plug'
  Plug 'mkitt/tabline.vim'
  Plug 'mhinz/vim-startify'
  Plug 'nathanaelkane/vim-indent-guides'
  Plug 'Raimondi/delimitMate'
  Plug 'sheerun/vim-polyglot'
  Plug 'vim-airline/vim-airline'
  Plug 'vim-airline/vim-airline-themes'
  Plug 'bcicen/vim-vice'
  Plug 'NLKNguyen/papercolor-theme'
  Plug 'sickill/vim-monokai'
  Plug 'mattly/vim-markdown-enhancements'
  Plug 'reedes/vim-colors-pencil'
  Plug 'reedes/vim-pencil'
  Plug 'reedes/vim-lexical'
  Plug 'kana/vim-operator-user' " requirement for vim-operator-flashy
  Plug 'haya14busa/vim-operator-flashy'
  Plug 'tpope/vim-commentary'
  Plug 'svermeulen/vim-easyclip'
  Plug 'tpope/vim-repeat' " requirement for vim-easyclip
  Plug 'wellle/targets.vim'
  Plug 'tommcdo/vim-lion'
  Plug 'junegunn/vim-easy-align'

call plug#end()

" vim-easy-align {{{

  xmap ga <Plug>(EasyAlign)
  nmap ga <Plug>(EasyAlign)

" }}}

" easyclip {{{

  set clipboard=unnamed

" }}}

" Operator Flashy {{{

  map y <Plug>(operator-flashy)
  nmap Y <Plug>(operator-flashy)$

" }}}

" IndentGuides {{{
"
  set ts=2 sw=2 et
  let g:indent_guides_start_level=2

" }}}

" Syntastic {{{

  set statusline+=%#warningmsg#
  set statusline+=%{SyntasticStatuslineFlag()}
  set statusline+=%*

  let g:syntastic_check_on_open = 1
  let g:syntastic_check_on_wq = 1

" }}}

" Airline {{{

 let g:airline#extensions#tabline#enabled = 1
 let g:airline_powerline_fonts = 1
 "let g:airline_theme = 'vice'
 let g:airline_theme = 'bubblegum'
 let g:airline_detect_modified = 1
 let g:airline_detect_paste = 1

" }}}

" Easy-Align {{{
"
  xmap ga <Plug>(EasyAlign)
  nmap ga <Plug>(EasyAlign)

" }}}

" Pencil {{{

  augroup pencil
    autocmd!
    autocmd FileType markdown,mkd,md call pencil#init()
    autocmd FileType text call pencil#init()
  augroup END
  let g:pencil#wrapModeDefault = 'soft'
  let g:pencil#joinspaces = 0 " 0 for one space, 1 for 2 spaces

" }}}

" Lexical {{{

  augroup lexical
    autocmd!
    autocmd FileType text,markdown,mkd,md call lexical#init()
  augroup END

  let g:lexical#spelllang = ['en_us']

" }}}

" Startify {{{

  let g:startify_bookmarks = [ '~/.config/nvim/init.vim', '~/.dotfiles/README.md' ]
  let g:startify_list_order = [ 'bookmarks', 'files', 'sessions'  ]

" }}}
" }}}

" General Settings {{{

  syntax on
  filetype on
  filetype plugin indent on
  set nocompatible
  set mouse=a
  set hidden
  set ruler
  set confirm
  set spelllang=en
  au BufNewFile,BufFilePre,BufRead *.md set filetype=markdown
  set switchbuf=usetab,newtab
  nnoremap <F8> :sbnext<CR>
  nnoremap <S-F8> :sbprevious<CR>

" }}}
"
"
" Alternate Keybinds {{{

  let mapleader=" "
  noremap <leader>1 1gt
  noremap <leader>2 2gt
  noremap <leader>3 3gt
  noremap <leader>4 4gt
  noremap <leader>5 5gt
  noremap <leader>6 6gt
  noremap <leader>7 7gt
  noremap <leader>8 8gt
  noremap <leader>9 9gt
  noremap <leader>0 :tablast<cr>
  nnoremap <c-h> <c-w><c-h>
  nnoremap <c-j> <c-w><c-j>
  nnoremap <c-k> <c-w><c-k>
  nnoremap <c-l> <c-w><c-l>
  nnoremap <c-o> <c-w>w
  nnoremap <c-p> <c-w>W


" }}}


" Appearance Settings {{{

  set laststatus=2
  colorscheme pencil
  set background=dark
  set number
  set relativenumber

  "remap j and k for virtual line movement
  noremap <silent><expr> j (v:count == 0 ? 'gj' : 'j')
  noremap <silent><expr> k (v:count == 0 ? 'gk' : 'k')

  set cursorline
  set cursorcolumn
  set fillchars=vert:\
  let g:Powerline_symbols = 'fancy'
  autocmd BufNewFile,BufRead *Xcolors,*Xresources,*xcolors,*xresources setf xdefaults

" }}}

" Tab Settings {{{

  set expandtab
  set tabstop=2
  set softtabstop=2
  set shiftwidth=2
  set backspace=indent,eol,start
  set autoindent
  set smartindent
  set pastetoggle=<F2>

" }}}

" Re-sources ~/.vimrc upon writing

  augroup reload_vimrc
    autocmd!
    autocmd BufWritePost ~/.config/nvim/init.vim nested source ~/.config/nvim/init.vim
    autocmd BufWritePost ~/.config/nvim/init.vim AirlineRefresh
  augroup END

"Formatting for plaintext {{{
"taken from https://www.reddit.com/r/vim/comments/4lvaok/_/
"
set wrap
set textwidth=80
set formatoptions+=tcoqnl1j
set linebreak
set breakindent
let &showbreak = ''
" Better indention/ hierarchy
set formatlistpat=^\\s*                    " Optional leading whitespace
set formatlistpat+=[                       " Start class
set formatlistpat+=\\[({]\\?               " |  Optionally match opening punctuation
set formatlistpat+=\\(                     " |  Start group
set formatlistpat+=[0-9]\\+                " |  |  A number
set formatlistpat+=\\\|[iIvVxXlLcCdDmM]\\+ " |  |  Roman numerals
set formatlistpat+=\\\|[a-zA-Z]            " |  |  A single letter
set formatlistpat+=\\)                     " |  End group
set formatlistpat+=[\\]:.)}                " |  Closing punctuation
set formatlistpat+=]                       " End class
set formatlistpat+=\\s\\+                  " One or more spaces
set formatlistpat+=\\\|^\\s*[-+o*]\\s\\+  " Or ASCII style bullet points

function! PlainText()
  if (&filetype == '')
    " We don't have a notion of comments in plain text. Also this clears up the use
    " of '*' in formatlistpat.
    set comments=
    " Use comment string for quoting
    set commentstring=>\ %s
    set spell
  endif
endfunction

"autocmd BufEnter * call PlainText()

"}}}

This is the output of /usr/bin/nvim --version:

NVIM 0.1.5
Build type: RelWithDebInfo
Compilation: /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -Wconversion -O2 -g -DDISABLE_LOG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -DHAVE_CONFIG_H -D_GNU_SOURCE -I/build/neovim/src/build/config -I/build/neovim/src/neovim-0.1.5/src -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/build/neovim/src/build/src/nvim/auto -I/build/neovim/src/build/include
Compiled by builduser

Optional features included (+) or not (-): +acl   +iconv    +jemalloc +tui      
For differences from Vim, see :help vim-differences

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Wrong colors in base16_flat theme

I noticed that 6d3710e completely changed the colors I used to have in base16_flat theme. Colors used to be like this:
correct
Now they look like this:
incorrect
Is there any configuration option I can set to get the original colors back?

missing theme 'dark'

How exactly am I supposed to get the very same theme as I was used to have when setting g:airline_theme to "dark" before? it yells me an error that themes have been migrated here, but i have this repo installed. the regular theme i'm using is 'molokai' but if i use that as airline_theme i get a totally different thing then before the split.
Please help, i want my theme back 😝

This is how it looked, and i can't find any option to get it back like this:
2017-03-21-130121_1920x1080_scrot

Dracula theme color conflict

vim-airline-themes included dracula theme has conflicting colors with https://github.com/dracula/vim, which already provides a theme for vim-airline.

Depending on loading order of vim-airline-themes and dracula/vim theme one gets one set of colors or another.

First is the vim-airline-themes version and the second the dracula/vim one:

airline-dracula

nothing happens after :AirlineTheme {theme_name}

Using Pathogen
I have a

ls ~/.vim/bundle/vim-airline-themes/autoload/airline/themes/ | grep luna
luna.vim

But after :AirlineTheme luna nothing happens.

or even:
set laststatus=2
let g:airline_theme='luna'

vim 7.4

Change theme but nothing happen

I try to change theme with this command AirlineTheme base16_3024 but nothing happen.
It just stay like this
menu_021

My .vimrc

set nocompatible
filetype plugin indent on
" Specify a directory for plugins
" - For Neovim: ~/.local/share/nvim/plugged
" - Avoid using standard Vim directory names like 'plugin'
call plug#begin('~/.vim/plugged')

Plug 'scrooloose/nerdtree'
Plug 'xuyuanp/nerdtree-git-plugin'
Plug 'leafgarland/typescript-vim'
Plug 'bling/vim-airline'
Plug 'vim-airline/vim-airline-themes'
" Initialize plugin system
call plug#end()

autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | endif
autocmd BufEnter * silent! lcd %:p:h

Tomorrow theme display is incorrect at startup

Hi,

Yesterday, I did a Neobundle update of my vim and the tomorrow theme of airline became a bit incorrect.

screenshot_20160517_205331
screenshot_20160517_205350

I use Unite, and actually this weird display fixes itself when I change the colorscheme.. but only with Unite.

What I mean is :

  1. I start vim, with Tomorrow colorscheme and tomorrow airline theme, the bug is there.
  2. I open unite and change the colorscheme to anything else, the bug goes away.
  3. I go back to Tomorrow and it's all good, the bug doesn't come back. Notice that this doesn't work if do :colorscheme whatever

That means that the theme is correct, and I have this bug only on this one. I have tried some other ones and it's the only one with this behavior.

My vimrc is quite big with all those Unite menus conf I am using, so I doubt it would be useful.

Any idea on how to fix that ?

Vim version 7.4.1797
Terminal : Konsole, urxvt, tmux

missing solarized dark theme

I noticed that solarized dark theme is missing from the themes folder and I would love to have that as an option again.

base16 airline theme

My VIM config:

set background=dark
let base16colorspace=256
colorscheme base16-eighties

let g:airline_theme='base16'

For shell I use base16-eighties.

And see some color problems:

screenshot 2016-09-20 15 07 44 copy

Powerline font shows wrong on startup

screen shot 2016-08-12 at 1 55 14 pm

screen shot 2016-08-12 at 1 55 29 pm

screen shot 2016-08-12 at 1 56 12 pm

The filename at the statusline has no background color. And there is an strange arrow on the right.But when I edit a file,the color changes,and the arrow becomes normal.

screen shot 2016-08-12 at 1 59 48 pm

screen shot 2016-08-12 at 2 00 03 pm

This problem happens everytime I start my vim.

:echo airline#statusline(1)
screen shot 2016-08-12 at 2 04 51 pm

Jellybeans different colors (Vim vs Gvim)

After recent updates (weeks ago, not sure when), colors don't match, but only in the airline, the syntax is fine. This also happens with base16 (look like a global problem). This problem happens in Normal, Insert or Visual Mode colors.

Vim (termite [same in urxvt], vim-plug up-to-date)
1457570199

Gvim
1457570202

Thanks for the awesome work, airline rulez!

monochrome: trailing space block non monochrome

In the monochrome theme, everything is in nice shades of grey. Everything except the 'trailing space' part.

1__tmux__tmux_

I have no idea how to change this, so if anyone can help you, I'd very much appreciate it.

Base16 Atelier Forest looks really ugly

I use the base16-atelierforest colour scheme; airline picks the base16_atelierforest theme which turns the statusbar an ugly green and black, rather than the base16 theme which looks more correct.
screenshot from 2016-03-02 10-03-54
I can work around this by setting g:airline_theme in my vimrc, but I'm not sure what's going on—is base16_atelierforest not inheriting data from base16 when it's supposed to?

Colors correct only when t_Co=8

I'm using ConEmu + Git Bash + vim. I have 256 colors (ANSI X3.64 / xterm) enabled in the ConEmu settings, and Solarized Dark (Luke Maciak) as the color pallette.

I need to set t_Co=256 to prevent vim from overriding the color palette after exiting, but when I do this the colors for airline are completely wrong.

When I exclude the set t_Co=256 statement the syntax highlighting is wrong in vim and the terminal color palette is overwritten as well, but airline appears as expected. I run set t_Co? and the value returned is 8. Also, echo $TERM returns cygwin but changing it to something like xterm hasn't seemed to help.

Unthemed character between vertically split status lines

I've tried several themes and none colour/style the character that appears below the vertical split column and between statuslines. I'm using the molokai theme, and have overridden the vertical split bg colour and character (a space) in my .vimrc to match, but that has no effect on this character.
whatchar

If it's not part of airline, it'd be nice to know what it is so I can change it using another hi … override.

release version

Hello,
Could you please provide a github release version? It would be much easier to package. Thank you :)

Themes not working in Neovim

I have both vim-airline and vim-airline-themes installed. After switching to Neovim, it still honors the original theme I had selected, but if I change to a different theme, I see this error message:

Could not resolve airline theme "base16_solarized.vim". Themes have been migrated to github.com/vim-airline/vim-airline-themes.

In case you are wondering, yes I did reinstall both plugins under the Neovim config directory. I used Plug to install them both.

Base 16 themes doesn't consider dark background

Most base16 themes have both dark and light variations. However, the base16 themes here does not seem to have a dark version.

Is there any plan to fix this?

Currently, I'm just using the base16 theme, since the base16_ocean theme does not have a dark theme.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.