summaryrefslogtreecommitdiff
path: root/start/lightline
diff options
context:
space:
mode:
Diffstat (limited to 'start/lightline')
-rw-r--r--start/lightline/LICENSE21
-rw-r--r--start/lightline/README.md389
-rw-r--r--start/lightline/autoload/lightline.vim502
-rw-r--r--start/lightline/autoload/lightline/colorscheme.vim257
-rw-r--r--start/lightline/autoload/lightline/colorscheme/16color.vim49
-rw-r--r--start/lightline/autoload/lightline/colorscheme/OldHope.vim44
-rw-r--r--start/lightline/autoload/lightline/colorscheme/PaperColor.vim12
-rw-r--r--start/lightline/autoload/lightline/colorscheme/PaperColor_dark.vim60
-rw-r--r--start/lightline/autoload/lightline/colorscheme/PaperColor_light.vim55
-rw-r--r--start/lightline/autoload/lightline/colorscheme/Tomorrow.vim41
-rw-r--r--start/lightline/autoload/lightline/colorscheme/Tomorrow_Night.vim41
-rw-r--r--start/lightline/autoload/lightline/colorscheme/Tomorrow_Night_Blue.vim43
-rw-r--r--start/lightline/autoload/lightline/colorscheme/Tomorrow_Night_Bright.vim42
-rw-r--r--start/lightline/autoload/lightline/colorscheme/Tomorrow_Night_Eighties.vim42
-rw-r--r--start/lightline/autoload/lightline/colorscheme/darcula.vim37
-rw-r--r--start/lightline/autoload/lightline/colorscheme/default.vim8
-rw-r--r--start/lightline/autoload/lightline/colorscheme/deus.vim40
-rw-r--r--start/lightline/autoload/lightline/colorscheme/jellybeans.vim40
-rw-r--r--start/lightline/autoload/lightline/colorscheme/landscape.vim25
-rw-r--r--start/lightline/autoload/lightline/colorscheme/materia.vim63
-rw-r--r--start/lightline/autoload/lightline/colorscheme/material.vim63
-rw-r--r--start/lightline/autoload/lightline/colorscheme/molokai.vim36
-rw-r--r--start/lightline/autoload/lightline/colorscheme/nord.vim46
-rw-r--r--start/lightline/autoload/lightline/colorscheme/one.vim64
-rw-r--r--start/lightline/autoload/lightline/colorscheme/powerline.vim28
-rw-r--r--start/lightline/autoload/lightline/colorscheme/seoul256.vim42
-rw-r--r--start/lightline/autoload/lightline/colorscheme/solarized.vim80
-rw-r--r--start/lightline/autoload/lightline/colorscheme/srcery_drk.vim44
-rw-r--r--start/lightline/autoload/lightline/colorscheme/wombat.vim40
-rw-r--r--start/lightline/autoload/lightline/colortable.vim42
-rw-r--r--start/lightline/autoload/lightline/tab.vim33
-rw-r--r--start/lightline/doc/lightline.txt1325
-rw-r--r--start/lightline/plugin/lightline.vim26
33 files changed, 3680 insertions, 0 deletions
diff --git a/start/lightline/LICENSE b/start/lightline/LICENSE
new file mode 100644
index 0000000..56144fc
--- /dev/null
+++ b/start/lightline/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2013-2019 itchyny
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/start/lightline/README.md b/start/lightline/README.md
new file mode 100644
index 0000000..1e6eb81
--- /dev/null
+++ b/start/lightline/README.md
@@ -0,0 +1,389 @@
+# lightline.vim
+A light and configurable statusline/tabline plugin for Vim
+
+https://github.com/itchyny/lightline.vim
+
+### powerline (default)
+
+![lightline.vim - powerline](https://raw.githubusercontent.com/wiki/itchyny/lightline.vim/image/powerline.png)
+
+### wombat
+
+![lightline.vim - wombat](https://raw.githubusercontent.com/wiki/itchyny/lightline.vim/image/wombat.png)
+
+### jellybeans
+
+![lightline.vim - jellybeans](https://raw.githubusercontent.com/wiki/itchyny/lightline.vim/image/jellybeans.png)
+
+### solarized dark
+
+![lightline.vim - solarized_dark](https://raw.githubusercontent.com/wiki/itchyny/lightline.vim/image/solarized_dark.png)
+
+### solarized light
+
+![lightline.vim - solarized_light](https://raw.githubusercontent.com/wiki/itchyny/lightline.vim/image/solarized_light.png)
+
+### PaperColor light
+
+![lightline.vim - PaperColor](https://raw.githubusercontent.com/wiki/itchyny/lightline.vim/image/PaperColor.png)
+
+### seoul256
+
+![lightline.vim - seoul256](https://raw.githubusercontent.com/wiki/itchyny/lightline.vim/image/seoul256.png)
+
+### one
+
+![lightline.vim - one](https://raw.githubusercontent.com/wiki/itchyny/lightline.vim/image/one.png)
+
+### landscape
+
+![lightline.vim - landscape](https://raw.githubusercontent.com/wiki/itchyny/lightline.vim/image/landscape.png)
+
+landscape is my colorscheme, which is a high-contrast cterm-supported colorscheme, available at https://github.com/itchyny/landscape.vim
+
+## Why yet another clone of powerline?
++ [vim-powerline](https://github.com/Lokaltog/vim-powerline) is a nice plugin, but deprecated.
++ [powerline](https://github.com/powerline/powerline) is a nice plugin, but difficult to configure.
++ [vim-airline](https://github.com/vim-airline/vim-airline) is a nice plugin, but it uses too much functions of other plugins, which should be done by users in `.vimrc`.
+
+## Spirit of this plugin
++ Minimalism. The core script is very small to achieve enough functions as a statusline plugin.
++ Configurability. You can create your own component and easily add to the statusline and the tabline.
++ Orthogonality. The plugin does not rely on the implementation of other plugins. Such plugin crossing settings should be configured by users.
+
+## Installation
+### [Pathogen](https://github.com/tpope/vim-pathogen)
+1. Install with the following command.
+
+ git clone https://github.com/itchyny/lightline.vim ~/.vim/bundle/lightline.vim
+
+### [Vundle](https://github.com/VundleVim/Vundle.vim)
+1. Add the following configuration to your `.vimrc`.
+
+ Plugin 'itchyny/lightline.vim'
+
+2. Install with `:PluginInstall`.
+
+### [NeoBundle](https://github.com/Shougo/neobundle.vim)
+1. Add the following configuration to your `.vimrc`.
+
+ NeoBundle 'itchyny/lightline.vim'
+
+2. Install with `:NeoBundleInstall`.
+
+### [vim-plug](https://github.com/junegunn/vim-plug)
+1. Add the following configuration to your `.vimrc`.
+
+ Plug 'itchyny/lightline.vim'
+
+2. Install with `:PlugInstall`.
+
+## Introduction
+After installing this plugin, you restart the editor and will get a cool statusline.
+![lightline.vim - tutorial](https://raw.githubusercontent.com/wiki/itchyny/lightline.vim/image/tutorial/1.png)
+
+The color of the statusline changes due to the mode of Vim. Try typing something, selecting in visual mode and replacing some texts.
+
+If the statusline looks like
+![lightline.vim - tutorial](https://raw.githubusercontent.com/wiki/itchyny/lightline.vim/image/tutorial/21.png)
+
+add the following configuration to your `.vimrc`.
+```vim
+set laststatus=2
+```
+
+If the statusline is not coloured like
+![lightline.vim - tutorial](https://raw.githubusercontent.com/wiki/itchyny/lightline.vim/image/tutorial/20.png)
+
+then modify `TERM` in your shell configuration (`.zshrc` for example)
+```sh
+export TERM=xterm-256color
+```
+and then add the following configure to your `.vimrc`.
+```vim
+if !has('gui_running')
+ set t_Co=256
+endif
+```
+
+Your statusline appears to work correctly? If yes, great, thanks for choosing lightline.vim! If no, please file an issue report to the [issue tracker](https://github.com/itchyny/lightline.vim/issues).
+
+By the way, `-- INSERT --` is unnecessary anymore because the mode information is displayed in the statusline.
+![lightline.vim - tutorial](https://raw.githubusercontent.com/wiki/itchyny/lightline.vim/image/tutorial/13.png)
+If you want to get rid of it, configure as follows.
+```vim
+set noshowmode
+```
+
+## Colorscheme configuration
+The lightline.vim plugin provides multiple colorschemes to meet your editor colorscheme.
+Do not be confused, editor colorscheme rules how codes look like in buffers and lightline.vim has independent colorscheme feature, which rules how the statusline looks like.
+
+If you are using wombat colorscheme, add the following setting to your `.vimrc`,
+```vim
+let g:lightline = {
+ \ 'colorscheme': 'wombat',
+ \ }
+```
+restart Vim and the statusline looks like:
+
+![lightline.vim - tutorial](https://raw.githubusercontent.com/wiki/itchyny/lightline.vim/image/tutorial/2.png)
+
+If the colors of the statusline do not change, move the settings of `g:lightline` before setting the editor colorscheme.
+
+There are many lightline colorschemes available as screenshots shown above. See `:h g:lightline.colorscheme` for the complete list.
+
+## Advanced configuration
+The default appearance of lightline.vim is carefully designed that the tutorial is enough here for most people.
+So please read this section if you really want to configure and enjoy the configurability of lightline.vim.
+
+Sometimes people want to display information of other plugins.
+For example git branch information, syntax check errors and some statuses of plugins.
+
+The lightline.vim plugin does not provide any plugin integration by default.
+This plugin considers orthogonality to be one of the important ideas, which means that the plugin does not rely on implementation of other plugins.
+Once a plugin starts to integrate with some famous plugins, it should be kept updated to follow the changes of the plugins, and should accept integration requests with new plugins and it will suffer from performance regression due to plugin availability checks.
+
+Instead, lightline.vim provides a simple API that user can easily integrate with other plugins.
+Once you understand how to configure and how it will be displayed in the statusline, you can also tell how to integrate with your favorite plugins.
+
+Let's start to configure the appearance.
+The statusline is composed by multiple components.
+It shows the current mode, filename, modified status on the left, and file format, encoding, filetype and cursor positions on the right.
+So in order to add something in the statusline, you firstly create a new component and specify the place.
+
+This is the hello world of lightline.vim component.
+```vim
+let g:lightline = {
+ \ 'colorscheme': 'wombat',
+ \ 'active': {
+ \ 'left': [ [ 'mode', 'paste' ],
+ \ [ 'readonly', 'filename', 'modified', 'helloworld' ] ]
+ \ },
+ \ 'component': {
+ \ 'helloworld': 'Hello, world!'
+ \ },
+ \ }
+```
+The statusline will look like:
+![lightline.vim - tutorial](https://raw.githubusercontent.com/wiki/itchyny/lightline.vim/image/tutorial/3.png)
+
+You have succeeded in displaying `Hello, world!` in the statusline.
+The `helloworld` component is added to `g:lightline.active.left` and its content is configured in `g:lightline.component`.
+The component contents are simply added to `&statusline`.
+Try `:echo &statusline`, it might be a little bit complicated, but you will find `Hello, world!` somewhere.
+
+You can use `'statusline'` syntax for lightline.vim components.
+Consult `:h 'statusline'` to see what's available here.
+For example, if you want to print the value of character under the cursor in hexadecimal, configure as
+```vim
+let g:lightline = {
+ \ 'colorscheme': 'wombat',
+ \ 'active': {
+ \ 'left': [ [ 'mode', 'paste' ],
+ \ [ 'readonly', 'filename', 'modified', 'charvaluehex' ] ]
+ \ },
+ \ 'component': {
+ \ 'charvaluehex': '0x%B'
+ \ },
+ \ }
+```
+![lightline.vim - tutorial](https://raw.githubusercontent.com/wiki/itchyny/lightline.vim/image/tutorial/4.png)
+
+You want the character value information on the right hand side? OK, configure as
+```vim
+let g:lightline = {
+ \ 'colorscheme': 'wombat',
+ \ 'active': {
+ \ 'right': [ [ 'lineinfo' ],
+ \ [ 'percent' ],
+ \ [ 'fileformat', 'fileencoding', 'filetype', 'charvaluehex' ] ]
+ \ },
+ \ 'component': {
+ \ 'charvaluehex': '0x%B'
+ \ },
+ \ }
+```
+![lightline.vim - tutorial](https://raw.githubusercontent.com/wiki/itchyny/lightline.vim/image/tutorial/5.png)
+
+We have learned how to add a simple component.
+
+- See `:h 'statusline'` to check the statusline flags.
+- Add a new component to `g:lightline.component`.
+- Add the component name to `g:lightline.active.left` or `g:lightline.active.right`.
+
+You can also configure the statusline of inactive buffers by adding the component to `g:lightline.inactive.left` or `g:lightline.inactive.right`.
+
+
+Now let's add some integrations with other plugin.
+The name of the git branch is important these days.
+But lightline.vim does not provide this information by default because it is also one of plugin crossing configurations, and not all people want the integration.
+
+In order to show the branch name in the statusline, install some plugins which provides the branch information.
+The [vim-fugitive](https://github.com/tpope/vim-fugitive) plugin is a famous plugin so let's integrate lightline.vim with it.
+If you don't like to install full git integration but just want to display the branch name in the statusline, you can use the [vim-gitbranch](https://github.com/itchyny/vim-gitbranch) plugin which provides `gitbranch#name` function.
+```vim
+let g:lightline = {
+ \ 'colorscheme': 'wombat',
+ \ 'active': {
+ \ 'left': [ [ 'mode', 'paste' ],
+ \ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ]
+ \ },
+ \ 'component_function': {
+ \ 'gitbranch': 'fugitive#head'
+ \ },
+ \ }
+```
+![lightline.vim - tutorial](https://raw.githubusercontent.com/wiki/itchyny/lightline.vim/image/tutorial/6.png)
+
+Okay, now the statusline shows that we are coding at the master branch.
+What do we learn from this example?
+
+- Find out the function which is suitable to use in the statusline.
+- Create a function component. The previous `charvaluehex` component has `'statusline'` item configuration and registered in `g:lightline.component`. In the current example, we register the name of the function in `g:lightline.component_function`. It should return the string to be displayed in the statusline.
+- Add the component name `gitbranch` to `g:lightline.active.left` or `g:lightline.active.right`.
+
+
+Here we have leaned two kinds of components.
+
+- component: it has a `%`-prefixed item which you can find the meaning at `:h 'statusline'`. All the default components of lightline.vim are components in this style. See the default components at `:h g:lightline.component`.
+- function component: the name of functions are registered. The function is called again and again so be careful not to register a heavy function. See the help with `:h g:lightline.component_function`.
+
+
+The function component is an important design for the configurability of lightline.vim.
+By providing the configuration interface via functions, you can adjust the statusline information as you wish.
+For the proof, let's look into some configuration examples in Q&A style.
+
+### Can I hide the readonly component in the help buffer?
+Yes, create a function component for `readonly`.
+The configuration of function component has priority over the default component.
+```vim
+let g:lightline = {
+ \ 'component_function': {
+ \ 'readonly': 'LightlineReadonly',
+ \ },
+ \ }
+
+function! LightlineReadonly()
+ return &readonly && &filetype !=# 'help' ? 'RO' : ''
+endfunction
+```
+![lightline.vim - tutorial](https://raw.githubusercontent.com/wiki/itchyny/lightline.vim/image/tutorial/7.png)
+
+### Can I hide the readonly component in other plugins buffer?
+Yes, modify the `LightlineReadonly` function as you wish.
+```vim
+function! LightlineReadonly()
+ return &readonly && &filetype !~# '\v(help|vimfiler|unite)' ? 'RO' : ''
+endfunction
+
+let g:unite_force_overwrite_statusline = 0
+let g:vimfiler_force_overwrite_statusline = 0
+```
+![lightline.vim - tutorial](https://raw.githubusercontent.com/wiki/itchyny/lightline.vim/image/tutorial/8.png)
+
+### Can I display the plugin information at the filename component?
+Yes, overwrite the filename component.
+```vim
+let g:lightline = {
+ \ 'component_function': {
+ \ 'filename': 'LightlineFilename',
+ \ },
+ \ }
+
+function! LightlineFilename()
+ return &filetype ==# 'vimfiler' ? vimfiler#get_status_string() :
+ \ &filetype ==# 'unite' ? unite#get_status_string() :
+ \ &filetype ==# 'vimshell' ? vimshell#get_status_string() :
+ \ expand('%:t') !=# '' ? expand('%:t') : '[No Name]'
+endfunction
+
+let g:unite_force_overwrite_statusline = 0
+let g:vimfiler_force_overwrite_statusline = 0
+let g:vimshell_force_overwrite_statusline = 0
+```
+![lightline.vim - tutorial](https://raw.githubusercontent.com/wiki/itchyny/lightline.vim/image/tutorial/9.png)
+
+### Can I display the plugin name at the mode component?
+Yes, overwrite the mode component.
+```vim
+let g:lightline = {
+ \ 'component_function': {
+ \ 'mode': 'LightlineMode',
+ \ },
+ \ }
+
+function! LightlineMode()
+ return expand('%:t') ==# '__Tagbar__' ? 'Tagbar':
+ \ expand('%:t') ==# 'ControlP' ? 'CtrlP' :
+ \ &filetype ==# 'unite' ? 'Unite' :
+ \ &filetype ==# 'vimfiler' ? 'VimFiler' :
+ \ &filetype ==# 'vimshell' ? 'VimShell' :
+ \ lightline#mode()
+endfunction
+```
+![lightline.vim - tutorial](https://raw.githubusercontent.com/wiki/itchyny/lightline.vim/image/tutorial/10.png)
+
+### Can I trim the file format and encoding information on narrow windows?
+Yes, check `winwidth(0)` and return empty string with some threshold.
+```vim
+let g:lightline = {
+ \ 'component_function': {
+ \ 'fileformat': 'LightlineFileformat',
+ \ 'filetype': 'LightlineFiletype',
+ \ },
+ \ }
+
+function! LightlineFileformat()
+ return winwidth(0) > 70 ? &fileformat : ''
+endfunction
+
+function! LightlineFiletype()
+ return winwidth(0) > 70 ? (&filetype !=# '' ? &filetype : 'no ft') : ''
+endfunction
+```
+![lightline.vim - tutorial](https://raw.githubusercontent.com/wiki/itchyny/lightline.vim/image/tutorial/11.png)
+
+### Can I trim the bar between the filename and modified sign?
+Yes, by joining the two components.
+```vim
+let g:lightline = {
+ \ 'active': {
+ \ 'left': [ [ 'mode', 'paste' ],
+ \ [ 'readonly', 'filename' ] ],
+ \ },
+ \ 'component_function': {
+ \ 'filename': 'LightlineFilename',
+ \ },
+ \ }
+
+function! LightlineFilename()
+ let filename = expand('%:t') !=# '' ? expand('%:t') : '[No Name]'
+ let modified = &modified ? ' +' : ''
+ return filename . modified
+endfunction
+```
+![lightline.vim - tutorial](https://raw.githubusercontent.com/wiki/itchyny/lightline.vim/image/tutorial/12.png)
+
+You can control the visibility and contents by writing simple functions.
+Now you notice how much function component is important for the configurability of lightline.vim.
+
+## Note for developers of other plugins
+Appearance consistency matters.
+
+The statusline is an important space for Vim users.
+Overwriting the statusline forcibly in your plugin is not a good idea.
+It is not hospitality, but just an annoying feature.
+If your plugin has such a feature, add an option to be modest.
+
+A good design is as follows.
+Firstly, give the users a clue to judge which buffer is the one your plugin creates.
+The filename is a manner and the filetype is another.
+Then, export a function which is useful to be shown in the statusline.
+Lastly, for advanced users, set important information in buffer variables so that the users can obtain the condition of the plugin easily.
+
+## Author
+itchyny (https://github.com/itchyny)
+
+## License
+This software is released under the MIT License, see LICENSE.
diff --git a/start/lightline/autoload/lightline.vim b/start/lightline/autoload/lightline.vim
new file mode 100644
index 0000000..2076a11
--- /dev/null
+++ b/start/lightline/autoload/lightline.vim
@@ -0,0 +1,502 @@
+" =============================================================================
+" Filename: autoload/lightline.vim
+" Author: itchyny
+" License: MIT License
+" Last Change: 2018/11/24 12:00:00.
+" =============================================================================
+
+let s:save_cpo = &cpo
+set cpo&vim
+
+let s:_ = 1 " 1: uninitialized, 2: disabled
+
+function! lightline#update() abort
+ if s:_
+ if s:_ == 2 | return | endif
+ call lightline#init()
+ call lightline#colorscheme()
+ endif
+ if !s:lightline.enable.statusline
+ return
+ endif
+ let w = winnr()
+ let s = winnr('$') == 1 ? [lightline#statusline(0)] : [lightline#statusline(0), lightline#statusline(1)]
+ for n in range(1, winnr('$'))
+ call setwinvar(n, '&statusline', s[n!=w])
+ call setwinvar(n, 'lightline', n!=w)
+ endfor
+endfunction
+
+function! lightline#update_once() abort
+ if !exists('w:lightline') || w:lightline
+ call lightline#update()
+ endif
+endfunction
+
+function! lightline#update_disable() abort
+ if !s:lightline.enable.statusline
+ return
+ endif
+ call setwinvar(0, '&statusline', '')
+endfunction
+
+function! lightline#enable() abort
+ let s:_ = 1
+ call lightline#update()
+ augroup lightline
+ autocmd!
+ autocmd WinEnter,BufWinEnter,FileType,SessionLoadPost * call lightline#update()
+ autocmd SessionLoadPost * call lightline#highlight()
+ autocmd ColorScheme * if !has('vim_starting') || expand('<amatch>') !=# 'macvim'
+ \ | call lightline#update() | call lightline#highlight() | endif
+ autocmd CursorMoved,BufUnload * call lightline#update_once()
+ augroup END
+ augroup lightline-disable
+ autocmd!
+ augroup END
+ augroup! lightline-disable
+endfunction
+
+function! lightline#disable() abort
+ let [&statusline, &tabline] = [get(s:, '_statusline', ''), get(s:, '_tabline', '')]
+ for t in range(1, tabpagenr('$'))
+ for n in range(1, tabpagewinnr(t, '$'))
+ call settabwinvar(t, n, '&statusline', '')
+ endfor
+ endfor
+ augroup lightline
+ autocmd!
+ augroup END
+ augroup! lightline
+ augroup lightline-disable
+ autocmd!
+ autocmd WinEnter * call lightline#update_disable()
+ augroup END
+ let s:_ = 2
+endfunction
+
+function! lightline#toggle() abort
+ if exists('#lightline')
+ call lightline#disable()
+ else
+ call lightline#enable()
+ endif
+endfunction
+
+let s:_lightline = {
+ \ 'active': {
+ \ 'left': [['mode', 'paste'], ['readonly', 'filename', 'modified']],
+ \ 'right': [['lineinfo'], ['percent'], ['fileformat', 'fileencoding', 'filetype']]
+ \ },
+ \ 'inactive': {
+ \ 'left': [['filename']],
+ \ 'right': [['lineinfo'], ['percent']]
+ \ },
+ \ 'tabline': {
+ \ 'left': [['tabs']],
+ \ 'right': [['close']]
+ \ },
+ \ 'tab': {
+ \ 'active': ['tabnum', 'filename', 'modified'],
+ \ 'inactive': ['tabnum', 'filename', 'modified']
+ \ },
+ \ 'component': {
+ \ 'mode': '%{lightline#mode()}',
+ \ 'absolutepath': '%F', 'relativepath': '%f', 'filename': '%t', 'modified': '%M', 'bufnum': '%n',
+ \ 'paste': '%{&paste?"PASTE":""}', 'readonly': '%R', 'charvalue': '%b', 'charvaluehex': '%B',
+ \ 'spell': '%{&spell?&spelllang:""}', 'fileencoding': '%{&fenc!=#""?&fenc:&enc}', 'fileformat': '%{&ff}',
+ \ 'filetype': '%{&ft!=#""?&ft:"no ft"}', 'percent': '%3p%%', 'percentwin': '%P',
+ \ 'lineinfo': '%3l:%-2v', 'line': '%l', 'column': '%c', 'close': '%999X X ', 'winnr': '%{winnr()}'
+ \ },
+ \ 'component_visible_condition': {
+ \ 'modified': '&modified||!&modifiable', 'readonly': '&readonly', 'paste': '&paste', 'spell': '&spell'
+ \ },
+ \ 'component_function': {},
+ \ 'component_function_visible_condition': {},
+ \ 'component_expand': {
+ \ 'tabs': 'lightline#tabs'
+ \ },
+ \ 'component_type': {
+ \ 'tabs': 'tabsel', 'close': 'raw'
+ \ },
+ \ 'component_raw': {},
+ \ 'tab_component': {},
+ \ 'tab_component_function': {
+ \ 'filename': 'lightline#tab#filename', 'modified': 'lightline#tab#modified',
+ \ 'readonly': 'lightline#tab#readonly', 'tabnum': 'lightline#tab#tabnum'
+ \ },
+ \ 'colorscheme': 'default',
+ \ 'mode_map': {
+ \ 'n': 'NORMAL', 'i': 'INSERT', 'R': 'REPLACE', 'v': 'VISUAL', 'V': 'V-LINE', "\<C-v>": 'V-BLOCK',
+ \ 'c': 'COMMAND', 's': 'SELECT', 'S': 'S-LINE', "\<C-s>": 'S-BLOCK', 't': 'TERMINAL'
+ \ },
+ \ 'separator': { 'left': '', 'right': '' },
+ \ 'subseparator': { 'left': '|', 'right': '|' },
+ \ 'tabline_separator': {},
+ \ 'tabline_subseparator': {},
+ \ 'enable': { 'statusline': 1, 'tabline': 1 },
+ \ '_mode_': {
+ \ 'n': 'normal', 'i': 'insert', 'R': 'replace', 'v': 'visual', 'V': 'visual', "\<C-v>": 'visual',
+ \ 'c': 'command', 's': 'select', 'S': 'select', "\<C-s>": 'select', 't': 'terminal'
+ \ },
+ \ 'mode_fallback': { 'replace': 'insert', 'terminal': 'insert', 'select': 'visual' },
+ \ 'palette': {},
+ \ 'winwidth': winwidth(0),
+ \ }
+function! lightline#init() abort
+ let s:lightline = deepcopy(get(g:, 'lightline', {}))
+ for [key, value] in items(s:_lightline)
+ if type(value) == 4
+ if !has_key(s:lightline, key)
+ let s:lightline[key] = {}
+ endif
+ call extend(s:lightline[key], value, 'keep')
+ elseif !has_key(s:lightline, key)
+ let s:lightline[key] = value
+ endif
+ unlet value
+ endfor
+ call extend(s:lightline.tabline_separator, s:lightline.separator, 'keep')
+ call extend(s:lightline.tabline_subseparator, s:lightline.subseparator, 'keep')
+ let s:lightline.tabline_configured = has_key(get(get(g:, 'lightline', {}), 'component_expand', {}), 'tabs')
+ for components in deepcopy(s:lightline.tabline.left + s:lightline.tabline.right)
+ if len(filter(components, 'v:val !=# "tabs" && v:val !=# "close"')) > 0
+ let s:lightline.tabline_configured = 1
+ break
+ endif
+ endfor
+ if !exists('s:_statusline')
+ let s:_statusline = &statusline
+ endif
+ if !exists('s:_tabline')
+ let s:_tabline = &tabline
+ endif
+ if s:lightline.enable.tabline
+ set tabline=%!lightline#tabline()
+ else
+ let &tabline = get(s:, '_tabline', '')
+ endif
+ for f in values(s:lightline.component_function)
+ silent! call call(f, [])
+ endfor
+ for f in values(s:lightline.tab_component_function)
+ silent! call call(f, [1])
+ endfor
+ let s:mode = ''
+endfunction
+
+function! lightline#colorscheme() abort
+ try
+ let s:lightline.palette = g:lightline#colorscheme#{s:lightline.colorscheme}#palette
+ catch
+ call lightline#error('Could not load colorscheme ' . s:lightline.colorscheme . '.')
+ let s:lightline.colorscheme = 'default'
+ let s:lightline.palette = g:lightline#colorscheme#{s:lightline.colorscheme}#palette
+ finally
+ if has('win32') && !has('gui_running') && &t_Co < 256
+ for u in values(s:lightline.palette)
+ for v in values(u)
+ for _ in v
+ let [_[2], _[3]] = [lightline#colortable#gui2cui(_[0], _[2]), lightline#colortable#gui2cui(_[1], _[3])]
+ endfor
+ endfor
+ endfor
+ endif
+ let s:highlight = {}
+ call lightline#highlight('normal')
+ call lightline#link()
+ let s:_ = 0
+ endtry
+endfunction
+
+function! lightline#palette() abort
+ return s:lightline.palette
+endfunction
+
+function! lightline#mode() abort
+ return get(s:lightline.mode_map, mode(), '')
+endfunction
+
+let s:mode = ''
+function! lightline#link(...) abort
+ let mode = get(s:lightline._mode_, a:0 ? a:1 : mode(), 'normal')
+ if s:mode == mode
+ return ''
+ endif
+ let s:mode = mode
+ if !has_key(s:highlight, mode)
+ call lightline#highlight(mode)
+ endif
+ let types = map(s:uniq(sort(filter(values(s:lightline.component_type), 'v:val !=# "raw"'))), '[v:val, 1]')
+ for [p, l] in [['Left', len(s:lightline.active.left)], ['Right', len(s:lightline.active.right)]]
+ for [i, t] in map(range(0, l), '[v:val, 0]') + types
+ if i != l
+ exec printf('hi link Lightline%s_active_%s Lightline%s_%s_%s', p, i, p, mode, i)
+ endif
+ for [j, s] in map(range(0, l), '[v:val, 0]') + types
+ if i + 1 == j || t || s && i != l
+ exec printf('hi link Lightline%s_active_%s_%s Lightline%s_%s_%s_%s', p, i, j, p, mode, i, j)
+ endif
+ endfor
+ endfor
+ endfor
+ exec printf('hi link LightlineMiddle_active LightlineMiddle_%s', mode)
+ return ''
+endfunction
+
+function! s:term(p) abort
+ return get(a:p, 4) !=# '' ? 'term='.a:p[4].' cterm='.a:p[4].' gui='.a:p[4] : ''
+endfunction
+
+if exists('*uniq')
+ let s:uniq = function('uniq')
+else
+ function! s:uniq(xs) abort
+ let i = len(a:xs) - 1
+ while i > 0
+ if a:xs[i] ==# a:xs[i - 1]
+ call remove(a:xs, i)
+ endif
+ let i -= 1
+ endwhile
+ return a:xs
+ endfunction
+endif
+
+function! lightline#highlight(...) abort
+ let [c, f] = [s:lightline.palette, s:lightline.mode_fallback]
+ let [s:lightline.llen, s:lightline.rlen] = [len(c.normal.left), len(c.normal.right)]
+ let [s:lightline.tab_llen, s:lightline.tab_rlen] = [len(has_key(get(c, 'tabline', {}), 'left') ? c.tabline.left : c.normal.left), len(has_key(get(c, 'tabline', {}), 'right') ? c.tabline.right : c.normal.right)]
+ let types = map(s:uniq(sort(filter(values(s:lightline.component_type), 'v:val !=# "raw"'))), '[v:val, 1]')
+ let modes = a:0 ? [a:1] : extend(['normal', 'insert', 'replace', 'visual', 'inactive', 'command', 'select', 'tabline'], exists(':terminal') == 2 ? ['terminal'] : [])
+ for mode in modes
+ let s:highlight[mode] = 1
+ let d = has_key(c, mode) ? mode : has_key(f, mode) && has_key(c, f[mode]) ? f[mode] : 'normal'
+ let left = d ==# 'tabline' ? s:lightline.tabline.left : d ==# 'inactive' ? s:lightline.inactive.left : s:lightline.active.left
+ let right = d ==# 'tabline' ? s:lightline.tabline.right : d ==# 'inactive' ? s:lightline.inactive.right : s:lightline.active.right
+ let ls = has_key(get(c, d, {}), 'left') ? c[d].left : has_key(f, d) && has_key(get(c, f[d], {}), 'left') ? c[f[d]].left : c.normal.left
+ let ms = has_key(get(c, d, {}), 'middle') ? c[d].middle[0] : has_key(f, d) && has_key(get(c, f[d], {}), 'middle') ? c[f[d]].middle[0] : c.normal.middle[0]
+ let rs = has_key(get(c, d, {}), 'right') ? c[d].right : has_key(f, d) && has_key(get(c, f[d], {}), 'right') ? c[f[d]].right : c.normal.right
+ for [p, l, zs] in [['Left', len(left), ls], ['Right', len(right), rs]]
+ for [i, t] in map(range(0, l), '[v:val, 0]') + types
+ if i < l || i < 1
+ let r = t ? (has_key(get(c, d, []), i) ? c[d][i][0] : has_key(get(c, 'tabline', {}), i) ? c.tabline[i][0] : get(c.normal, i, zs)[0]) : get(zs, i, ms)
+ exec printf('hi Lightline%s_%s_%s guifg=%s guibg=%s ctermfg=%s ctermbg=%s %s', p, mode, i, r[0], r[1], r[2], r[3], s:term(r))
+ endif
+ for [j, s] in map(range(0, l), '[v:val, 0]') + types
+ if i + 1 == j || t || s && i != l
+ let q = s ? (has_key(get(c, d, []), j) ? c[d][j][0] : has_key(get(c, 'tabline', {}), j) ? c.tabline[j][0] : get(c.normal, j, zs)[0]) : (j != l ? get(zs, j, ms) :ms)
+ exec printf('hi Lightline%s_%s_%s_%s guifg=%s guibg=%s ctermfg=%s ctermbg=%s', p, mode, i, j, r[1], q[1], r[3], q[3])
+ endif
+ endfor
+ endfor
+ endfor
+ exec printf('hi LightlineMiddle_%s guifg=%s guibg=%s ctermfg=%s ctermbg=%s %s', mode, ms[0], ms[1], ms[2], ms[3], s:term(ms))
+ endfor
+endfunction
+
+function! s:subseparator(components, subseparator, expanded) abort
+ let [a, c, f, v, u] = [a:components, s:lightline.component, s:lightline.component_function, s:lightline.component_visible_condition, s:lightline.component_function_visible_condition]
+ let xs = map(range(len(a:components)), 'a:expanded[v:val] ? "1" :
+ \ has_key(f, a[v:val]) ? (has_key(u, a[v:val]) ? "(".u[a[v:val]].")" : (exists("*".f[a[v:val]]) ? "" : "exists(\"*".f[a[v:val]]."\")&&").f[a[v:val]]."()!=#\"\"") :
+ \ has_key(v, a[v:val]) ? "(".v[a[v:val]].")" : has_key(c, a[v:val]) ? "1" : "0"')
+ return '%{' . (xs[0] ==# '1' || xs[0] ==# '(1)' ? '' : xs[0] . '&&(') . join(xs[1:], '||') . (xs[0] ==# '1' || xs[0] ==# '(1)' ? '' : ')') . '?"' . a:subseparator . '":""}'
+endfunction
+
+function! lightline#concatenate(xs, right) abort
+ let separator = a:right ? s:lightline.subseparator.right : s:lightline.subseparator.left
+ return join(filter(copy(a:xs), 'v:val !=# ""'), ' ' . separator . ' ')
+endfunction
+
+function! lightline#statusline(inactive) abort
+ if a:inactive && !has_key(s:highlight, 'inactive')
+ call lightline#highlight('inactive')
+ endif
+ return s:line(0, a:inactive)
+endfunction
+
+function! s:normalize(result) abort
+ if type(a:result) == 3
+ return map(a:result, 'type(v:val) == 1 ? v:val : string(v:val)')
+ elseif type(a:result) == 1
+ return [a:result]
+ else
+ return [string(a:result)]
+ endif
+endfunction
+
+function! s:evaluate_expand(component) abort
+ try
+ let result = eval(a:component . '()')
+ if type(result) == 1 && result ==# ''
+ return []
+ endif
+ catch
+ return []
+ endtry
+ return map(type(result) == 3 ? (result + [[], [], []])[:2] : [[], [result], []], 'filter(s:normalize(v:val), "v:val !=# ''''")')
+endfunction
+
+function! s:convert(name, index) abort
+ if has_key(s:lightline.component_expand, a:name)
+ let type = get(s:lightline.component_type, a:name, a:index)
+ let is_raw = get(s:lightline.component_raw, a:name) || type ==# 'raw'
+ return filter(s:map(s:evaluate_expand(s:lightline.component_expand[a:name]),
+ \ '[v:val, 1 + ' . is_raw . ', v:key == 1 && ' . (type !=# 'raw') . ' ? "' . type . '" : "' . a:index . '", "' . a:index . '"]'), 'v:val[0] != []')
+ else
+ return [[[a:name], 0, a:index, a:index]]
+ endif
+endfunction
+
+function! s:flatten_twice(xss) abort
+ let ys = []
+ for xs in a:xss
+ for x in xs
+ let ys += x
+ endfor
+ endfor
+ return ys
+endfunction
+
+if v:version > 702 || v:version == 702 && has('patch295')
+ let s:map = function('map')
+else
+ function! s:map(xs, f) abort
+ let ys = []
+ for i in range(len(a:xs))
+ call extend(ys, map(a:xs[(i):(i)], substitute(a:f, 'v:key', i, 'g')))
+ endfor
+ return ys
+ endfunction
+endif
+
+function! s:expand(components) abort
+ let components = []
+ let expanded = []
+ let indices = []
+ let prevtype = ''
+ let previndex = -1
+ let xs = s:flatten_twice(s:map(deepcopy(a:components), 'map(v:val, "s:convert(v:val, ''" . v:key . "'')")'))
+ for [component, expand, type, index] in xs
+ if prevtype !=# type
+ for i in range(previndex + 1, max([previndex, index - 1]))
+ call add(indices, string(i))
+ call add(components, [])
+ call add(expanded, [])
+ endfor
+ call add(indices, type)
+ call add(components, [])
+ call add(expanded, [])
+ endif
+ call extend(components[-1], component)
+ call extend(expanded[-1], repeat([expand], len(component)))
+ let prevtype = type
+ let previndex = index
+ endfor
+ for i in range(previndex + 1, max([previndex, len(a:components) - 1]))
+ call add(indices, string(i))
+ call add(components, [])
+ call add(expanded, [])
+ endfor
+ call add(indices, string(len(a:components)))
+ return [components, expanded, indices]
+endfunction
+
+function! s:line(tabline, inactive) abort
+ let _ = a:tabline ? '' : '%{lightline#link()}'
+ if s:lightline.palette == {}
+ call lightline#colorscheme()
+ endif
+ let [l, r] = a:tabline ? [s:lightline.tab_llen, s:lightline.tab_rlen] : [s:lightline.llen, s:lightline.rlen]
+ let [p, s] = a:tabline ? [s:lightline.tabline_separator, s:lightline.tabline_subseparator] : [s:lightline.separator, s:lightline.subseparator]
+ let [c, f, t, w] = [s:lightline.component, s:lightline.component_function, s:lightline.component_type, s:lightline.component_raw]
+ let mode = a:tabline ? 'tabline' : a:inactive ? 'inactive' : 'active'
+ let l_ = has_key(s:lightline, mode) ? s:lightline[mode].left : s:lightline.active.left
+ let [lt, lc, ll] = s:expand(copy(l_))
+ let r_ = has_key(s:lightline, mode) ? s:lightline[mode].right : s:lightline.active.right
+ let [rt, rc, rl] = s:expand(copy(r_))
+ for i in range(len(lt))
+ let _ .= '%#LightlineLeft_' . mode . '_' . ll[i] . '#'
+ for j in range(len(lt[i]))
+ let x = lc[i][j] ? lt[i][j] : has_key(f, lt[i][j]) ? (exists('*' . f[lt[i][j]]) ? '%{' . f[lt[i][j]] . '()}' : '%{exists("*' . f[lt[i][j]] . '")?' . f[lt[i][j]] . '():""}') : get(c, lt[i][j], '')
+ let _ .= has_key(t, lt[i][j]) && t[lt[i][j]] ==# 'raw' || get(w, lt[i][j]) || lc[i][j] ==# 2 || x ==# '' ? x : '%( ' . x . ' %)'
+ if j < len(lt[i]) - 1 && s.left !=# ''
+ let _ .= s:subseparator(lt[i][(j):], s.left, lc[i][(j):])
+ endif
+ endfor
+ let _ .= '%#LightlineLeft_' . mode . '_' . ll[i] . '_' . ll[i + 1] . '#'
+ let _ .= i < l + len(lt) - len(l_) && ll[i] < l || ll[i] != ll[i + 1] ? p.left : len(lt[i]) ? s.left : ''
+ endfor
+ let _ .= '%#LightlineMiddle_' . mode . '#%='
+ for i in reverse(range(len(rt)))
+ let _ .= '%#LightlineRight_' . mode . '_' . rl[i] . '_' . rl[i + 1] . '#'
+ let _ .= i < r + len(rt) - len(r_) && rl[i] < r || rl[i] != rl[i + 1] ? p.right : len(rt[i]) ? s.right : ''
+ let _ .= '%#LightlineRight_' . mode . '_' . rl[i] . '#'
+ for j in range(len(rt[i]))
+ let x = rc[i][j] ? rt[i][j] : has_key(f, rt[i][j]) ? (exists('*' . f[rt[i][j]]) ? '%{' . f[rt[i][j]] . '()}' : '%{exists("*' . f[rt[i][j]] . '")?' . f[rt[i][j]] . '():""}') : get(c, rt[i][j], '')
+ let _ .= has_key(t, rt[i][j]) && t[rt[i][j]] ==# 'raw' || get(w, rt[i][j]) || rc[i][j] ==# 2 || x ==# '' ? x : '%( ' . x . ' %)'
+ if j < len(rt[i]) - 1 && s.right !=# ''
+ let _ .= s:subseparator(rt[i][(j):], s.right, rc[i][(j):])
+ endif
+ endfor
+ endfor
+ return _
+endfunction
+
+let s:tabnr = -1
+let s:tabcnt = -1
+let s:tabline = ''
+function! lightline#tabline() abort
+ if !has_key(s:highlight, 'tabline')
+ call lightline#highlight('tabline')
+ endif
+ if s:lightline.tabline_configured || s:tabnr != tabpagenr() || s:tabcnt != tabpagenr('$')
+ let s:tabnr = tabpagenr()
+ let s:tabcnt = tabpagenr('$')
+ let s:tabline = s:line(1, 0)
+ endif
+ return s:tabline
+endfunction
+
+function! lightline#tabs() abort
+ let [x, y, z] = [[], [], []]
+ let nr = tabpagenr()
+ let cnt = tabpagenr('$')
+ for i in range(1, cnt)
+ call add(i < nr ? x : i == nr ? y : z, (i > nr + 3 ? '%<' : '') . '%'. i . 'T%{lightline#onetab(' . i . ',' . (i == nr) . ')}' . (i == cnt ? '%T' : ''))
+ endfor
+ let abbr = '...'
+ let n = min([max([s:lightline.winwidth / 40, 2]), 8])
+ if len(x) > n && len(z) > n
+ let x = extend(add(x[:n/2-1], abbr), x[-(n+1)/2:])
+ let z = extend(add(z[:(n+1)/2-1], abbr), z[-n/2:])
+ elseif len(x) + len(z) > 2 * n
+ if len(x) > n
+ let x = extend(add(x[:(2*n-len(z))/2-1], abbr), x[-(2*n-len(z)+1)/2:])
+ elseif len(z) > n
+ let z = extend(add(z[:(2*n-len(x)+1)/2-1], abbr), z[-(2*n-len(x))/2:])
+ endif
+ endif
+ return [x, y, z]
+endfunction
+
+function! lightline#onetab(n, active) abort
+ let _ = []
+ for name in a:active ? s:lightline.tab.active : s:lightline.tab.inactive
+ if has_key(s:lightline.tab_component_function, name)
+ call add(_, call(s:lightline.tab_component_function[name], [a:n]))
+ else
+ call add(_, get(s:lightline.tab_component, name, ''))
+ endif
+ endfor
+ return join(filter(_, 'v:val !=# ""'), ' ')
+endfunction
+
+function! lightline#error(msg) abort
+ echohl ErrorMsg
+ echomsg 'lightline.vim: '.a:msg
+ echohl None
+endfunction
+
+let &cpo = s:save_cpo
+unlet s:save_cpo
diff --git a/start/lightline/autoload/lightline/colorscheme.vim b/start/lightline/autoload/lightline/colorscheme.vim
new file mode 100644
index 0000000..79013ff
--- /dev/null
+++ b/start/lightline/autoload/lightline/colorscheme.vim
@@ -0,0 +1,257 @@
+" =============================================================================
+" Filename: autoload/lightline/colorscheme.vim
+" Author: itchyny
+" License: MIT License
+" Last Change: 2018/09/01 22:48:24.
+" =============================================================================
+
+let s:save_cpo = &cpo
+set cpo&vim
+
+let s:cuicolor = {
+ \ 'black' : 16,
+ \ 'white' : 231,
+ \
+ \ 'darkestgreen' : 22,
+ \ 'darkgreen' : 28,
+ \ 'mediumgreen' : 70,
+ \ 'brightgreen' : 148,
+ \
+ \ 'darkestcyan' : 23,
+ \ 'mediumcyan' : 117,
+ \
+ \ 'darkestblue' : 24,
+ \ 'darkblue' : 31,
+ \
+ \ 'darkestred' : 52,
+ \ 'darkred' : 88,
+ \ 'mediumred' : 124,
+ \ 'brightred' : 160,
+ \ 'brightestred' : 196,
+ \
+ \ 'darkestpurple' : 55,
+ \ 'mediumpurple' : 98,
+ \ 'brightpurple' : 189,
+ \
+ \ 'brightorange' : 208,
+ \ 'brightestorange': 214,
+ \
+ \ 'gray0' : 233,
+ \ 'gray1' : 235,
+ \ 'gray2' : 236,
+ \ 'gray3' : 239,
+ \ 'gray4' : 240,
+ \ 'gray5' : 241,
+ \ 'gray6' : 244,
+ \ 'gray7' : 245,
+ \ 'gray8' : 247,
+ \ 'gray9' : 250,
+ \ 'gray10' : 252,
+ \
+ \ 'yellow' : 136,
+ \ 'orange' : 166,
+ \ 'red' : 160,
+ \ 'magenta' : 125,
+ \ 'violet' : 61,
+ \ 'blue' : 33,
+ \ 'cyan' : 37,
+ \ 'green' : 64,
+ \ }
+
+let s:guicolor = {
+ \ 'black' : '#000000',
+ \ 'white' : '#ffffff',
+ \
+ \ 'darkestgreen' : '#005f00',
+ \ 'darkgreen' : '#008700',
+ \ 'mediumgreen' : '#5faf00',
+ \ 'brightgreen' : '#afdf00',
+ \
+ \ 'darkestcyan' : '#005f5f',
+ \ 'mediumcyan' : '#87dfff',
+ \
+ \ 'darkestblue' : '#005f87',
+ \ 'darkblue' : '#0087af',
+ \
+ \ 'darkestred' : '#5f0000',
+ \ 'darkred' : '#870000',
+ \ 'mediumred' : '#af0000',
+ \ 'brightred' : '#df0000',
+ \ 'brightestred' : '#ff0000',
+ \
+ \ 'darkestpurple' : '#5f00af',
+ \ 'mediumpurple' : '#875fdf',
+ \ 'brightpurple' : '#dfdfff',
+ \
+ \ 'brightorange' : '#ff8700',
+ \ 'brightestorange': '#ffaf00',
+ \
+ \ 'gray0' : '#121212',
+ \ 'gray1' : '#262626',
+ \ 'gray2' : '#303030',
+ \ 'gray3' : '#4e4e4e',
+ \ 'gray4' : '#585858',
+ \ 'gray5' : '#606060',
+ \ 'gray6' : '#808080',
+ \ 'gray7' : '#8a8a8a',
+ \ 'gray8' : '#9e9e9e',
+ \ 'gray9' : '#bcbcbc',
+ \ 'gray10' : '#d0d0d0',
+ \
+ \ 'yellow' : '#b58900',
+ \ 'orange' : '#cb4b16',
+ \ 'red' : '#dc322f',
+ \ 'magenta' : '#d33682',
+ \ 'violet' : '#6c71c4',
+ \ 'blue' : '#268bd2',
+ \ 'cyan' : '#2aa198',
+ \ 'green' : '#859900',
+ \ }
+
+function! s:convert(rgb) abort
+ let rgb = map(matchlist(a:rgb, '#\(..\)\(..\)\(..\)')[1:3], '0 + ("0x".v:val)')
+ if len(rgb) == 0
+ return 0
+ endif
+ if rgb[0] == 0xc0 && rgb[1] == 0xc0 && rgb[2] == 0xc0
+ return 7
+ elseif rgb[0] == 0x80 && rgb[1] == 0x80 && rgb[2] == 0x80
+ return 8
+ elseif (rgb[0] == 0x80 || rgb[0] == 0x00) && (rgb[1] == 0x80 || rgb[1] == 0x00) && (rgb[2] == 0x80 || rgb[2] == 0x00)
+ return (rgb[0] / 0x80) + (rgb[1] / 0x80) * 2 + (rgb[1] / 0x80) * 4
+ elseif abs(rgb[0]-rgb[1]) < 3 && abs(rgb[1]-rgb[2]) < 3 && abs(rgb[2]-rgb[0]) < 3
+ return s:black((rgb[0] + rgb[1] + rgb[2]) / 3)
+ else
+ return 16 + ((s:nr(rgb[0]) * 6) + s:nr(rgb[1])) * 6 + s:nr(rgb[2])
+ endif
+endfunction
+
+function! s:black(x) abort
+ if a:x < 0x04
+ return 16
+ elseif a:x > 0xf4
+ return 231
+ elseif index([0x00, 0x5f, 0x87, 0xaf, 0xdf, 0xff], a:x) >= 0
+ let l = a:x / 0x30
+ return ((l * 6) + l) * 6 + l + 16
+ else
+ return 232 + (a:x < 8 ? 0 : a:x < 0x60 ? (a:x-8)/10 : a:x < 0x76 ? (a:x-0x60)/6+9 : (a:x-8)/10)
+ endif
+endfunction
+
+function! s:nr(x) abort
+ return a:x < 0x2f ? 0 : a:x < 0x73 ? 1 : a:x < 0x9b ? 2 : a:x < 0xc7 ? 3 : a:x < 0xef ? 4 : 5
+endfunction
+
+function! s:rgb(r, g, b) abort
+ return printf('#%02x%02x%02x', a:r, a:g, a:b)
+endfunction
+
+function! s:upconvert(nr) abort
+ let x = a:nr * 1
+ if x < 7
+ let [b, rg] = [x / 4, x % 4]
+ let [g, r] = [rg / 2, rg % 2]
+ return s:rgb(r * 0x80, g * 0x80, b * 0x80)
+ elseif x == 7
+ return s:rgb(0xc0, 0xc0, 0xc0)
+ elseif x == 8
+ return s:rgb(0x80, 0x80, 0x80)
+ elseif x < 16
+ let y = x - 8
+ let [b, rg] = [y / 4, y % 4]
+ let [g, r] = [rg / 2, rg % 2]
+ return s:rgb(r * 0xff, g * 0xff, b * 0xff)
+ elseif x < 232
+ let y = x - 16
+ let [rg, b] = [y / 6, y % 6]
+ let [r, g] = [rg / 6, rg % 6]
+ let l = [0x00, 0x5f, 0x87, 0xaf, 0xdf, 0xff]
+ return s:rgb(l[r], l[g], l[b])
+ elseif x < 241
+ let k = (x - 232) * 10 + 8
+ return s:rgb(k, k, k)
+ elseif x < 243
+ let k = (x - 241) * 6 + 0x60
+ return s:rgb(k, k, k)
+ else
+ let k = (x - 232) * 10 + 8
+ return s:rgb(k, k, k)
+ endif
+endfunction
+
+function! lightline#colorscheme#fill(p) abort
+ for k in values(a:p)
+ for l in values(k)
+ for m in l
+ if len(m) < 4
+ if type(m[0]) == 1 && type(m[1]) == 1
+ if m[0] =~# '^\d\+$' && m[1] =~# '^\d\+$'
+ call insert(m, s:upconvert(m[1]), 0)
+ call insert(m, s:upconvert(m[1]), 0)
+ else
+ call insert(m, get(s:cuicolor, m[0], s:convert(m[0])), 2)
+ call insert(m, get(s:cuicolor, m[1], s:convert(m[1])), 3)
+ let m[0] = get(s:guicolor, m[0], m[0])
+ let m[1] = get(s:guicolor, m[1], m[1])
+ endif
+ elseif type(m[0]) == 0 && type(m[1]) == 0
+ call insert(m, s:upconvert(m[1]), 0)
+ call insert(m, s:upconvert(m[1]), 0)
+ endif
+ endif
+ endfor
+ endfor
+ endfor
+ return a:p
+endfunction
+
+function! lightline#colorscheme#flatten(p) abort
+ for k in values(a:p)
+ for l in values(k)
+ for m in range(len(l))
+ let attr = ''
+ if len(l[m]) == 3 && type(l[m][2]) == 1
+ let attr = l[m][2]
+ endif
+ let l[m] = [l[m][0][0], l[m][1][0], l[m][0][1], l[m][1][1]]
+ if !empty(attr)
+ call add(l[m], attr)
+ endif
+ endfor
+ endfor
+ endfor
+ return a:p
+endfunction
+
+if has('gui_running') || (has('termguicolors') && &termguicolors)
+ function! lightline#colorscheme#background() abort
+ return &background
+ endfunction
+else
+ " &background is set inappropriately when the colorscheme sets ctermbg of the Normal group
+ function! lightline#colorscheme#background() abort
+ let bg_color = synIDattr(synIDtrans(hlID('Normal')), 'bg', 'cterm')
+ if bg_color !=# ''
+ if bg_color < 16
+ return &background
+ elseif 232 <= bg_color && bg_color < 244
+ return 'dark'
+ elseif 244 <= bg_color
+ return 'light'
+ endif
+ endif
+ let fg_color = synIDattr(synIDtrans(hlID('Normal')), 'fg', 'cterm')
+ if fg_color !=# ''
+ if fg_color < 8 || 232 <= fg_color && fg_color < 244
+ return 'light'
+ elseif 8 <= fg_color && fg_color < 16 || 244 <= fg_color
+ return 'dark'
+ endif
+ endif
+ return &background
+ endfunction
+endif
+
+let &cpo = s:save_cpo
+unlet s:save_cpo
diff --git a/start/lightline/autoload/lightline/colorscheme/16color.vim b/start/lightline/autoload/lightline/colorscheme/16color.vim
new file mode 100644
index 0000000..41e6497
--- /dev/null
+++ b/start/lightline/autoload/lightline/colorscheme/16color.vim
@@ -0,0 +1,49 @@
+" =============================================================================
+" Filename: autoload/lightline/colorscheme/16color.vim
+" Author: itchyny
+" License: MIT License
+" Last Change: 2017/11/25 11:14:04.
+" =============================================================================
+
+let s:base03 = [ '#808080', 8 ]
+let s:base02 = [ '#000000', 0 ]
+let s:base01 = [ '#00ff00', 10 ]
+let s:base00 = [ '#ffff00', 11 ]
+let s:base0 = [ '#0000ff', 12 ]
+let s:base1 = [ '#00ffff', 14 ]
+let s:base2 = [ '#c0c0c0', 7 ]
+let s:base3 = [ '#ffffff', 15 ]
+let s:yellow = [ '#808000', 3 ]
+let s:orange = [ '#ff0000', 9 ]
+let s:red = [ '#800000', 1 ]
+let s:magenta = [ '#800080', 5 ]
+let s:violet = [ '#ff00ff', 13 ]
+let s:blue = [ '#000080', 4 ]
+let s:cyan = [ '#008080', 6 ]
+let s:green = [ '#008000', 2 ]
+
+if lightline#colorscheme#background() ==# 'light'
+ let [s:base03, s:base3] = [s:base3, s:base03]
+ let [s:base02, s:base2] = [s:base2, s:base02]
+ let [s:base01, s:base1] = [s:base1, s:base01]
+ let [s:base00, s:base0] = [s:base0, s:base00]
+endif
+
+let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
+let s:p.normal.left = [ [ s:base3, s:blue ], [ s:base3, s:base01 ] ]
+let s:p.normal.right = [ [ s:base02, s:base0 ], [ s:base1, s:base01 ] ]
+let s:p.inactive.right = [ [ s:base02, s:base01 ], [ s:base00, s:base02 ] ]
+let s:p.inactive.left = [ [ s:base0, s:base02 ], [ s:base00, s:base02 ] ]
+let s:p.insert.left = [ [ s:base3, s:green ], [ s:base3, s:base01 ] ]
+let s:p.replace.left = [ [ s:base3, s:red ], [ s:base3, s:base01 ] ]
+let s:p.visual.left = [ [ s:base3, s:magenta ], [ s:base3, s:base01 ] ]
+let s:p.normal.middle = [ [ s:base1, s:base02 ] ]
+let s:p.inactive.middle = [ [ s:base0, s:base02 ] ]
+let s:p.tabline.left = [ [ s:base2, s:base01 ] ]
+let s:p.tabline.tabsel = [ [ s:base2, s:base02 ] ]
+let s:p.tabline.middle = [ [ s:base01, s:base2 ] ]
+let s:p.tabline.right = copy(s:p.normal.right)
+let s:p.normal.error = [ [ s:base2, s:red ] ]
+let s:p.normal.warning = [ [ s:base02, s:yellow ] ]
+
+let g:lightline#colorscheme#16color#palette = lightline#colorscheme#flatten(s:p)
diff --git a/start/lightline/autoload/lightline/colorscheme/OldHope.vim b/start/lightline/autoload/lightline/colorscheme/OldHope.vim
new file mode 100644
index 0000000..ff78290
--- /dev/null
+++ b/start/lightline/autoload/lightline/colorscheme/OldHope.vim
@@ -0,0 +1,44 @@
+" =============================================================================
+" Filename: autoload/lightline/colorscheme/OldHope.vim
+" Author: tomb0y
+" License: MIT License
+" Last Change: 2017/10/15 06:20:54.
+" =============================================================================
+
+let s:yellow = [ '#e5cd52' , 221 ]
+let s:blue = [ '#4fb4d8' , 39 ]
+let s:red = [ '#f92672' , 161 ]
+let s:green = [ '#78bd65' , 41 ]
+let s:orange = [ '#ef7c2a' , 202 ]
+let s:white = [ '#ffffff' , 15 ]
+let s:lightGray = [ '#848794' , 245 ]
+let s:gray = [ '#686b78' , 242 ]
+let s:darkGray = [ '#45474f' , 238 ]
+let s:veryDarkGray = [ '#1c1d21' , 234 ]
+
+let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
+
+let s:p.normal.left = [ [ s:white, s:blue ], [ s:white, s:gray ] ]
+let s:p.insert.left = [ [ s:white, s:green ], [ s:white, s:gray ] ]
+let s:p.visual.left = [ [ s:white, s:orange ], [ s:white, s:gray ] ]
+let s:p.replace.left = [ [ s:white, s:red ], [ s:white, s:gray ] ]
+
+let s:p.inactive.right = [ [ s:darkGray, s:gray ], [ s:darkGray, s:gray ] ]
+let s:p.inactive.left = [ [ s:lightGray, s:darkGray ], [ s:white, s:darkGray ] ]
+let s:p.inactive.middle = [ [ s:white, s:darkGray ] ]
+
+let s:p.normal.middle = [ [ s:white, s:darkGray ] ]
+let s:p.normal.error = [ [ s:red, s:darkGray ] ]
+let s:p.normal.warning = [ [ s:orange, s:darkGray ] ]
+
+let s:p.tabline.left = [ [ s:lightGray, s:darkGray ] ]
+let s:p.tabline.tabsel = [ [ s:darkGray, s:yellow ] ]
+let s:p.tabline.middle = [ [ s:yellow, s:veryDarkGray ] ]
+
+let s:p.normal.right = copy(s:p.normal.left)
+let s:p.insert.right = copy(s:p.insert.left)
+let s:p.visual.right = copy(s:p.visual.left)
+let s:p.replace.right = copy(s:p.replace.left)
+let s:p.tabline.right = copy(s:p.tabline.left)
+
+let g:lightline#colorscheme#OldHope#palette = lightline#colorscheme#flatten(s:p)
diff --git a/start/lightline/autoload/lightline/colorscheme/PaperColor.vim b/start/lightline/autoload/lightline/colorscheme/PaperColor.vim
new file mode 100644
index 0000000..90aa426
--- /dev/null
+++ b/start/lightline/autoload/lightline/colorscheme/PaperColor.vim
@@ -0,0 +1,12 @@
+" =============================================================================
+" Filename: autoload/lightline/colorscheme/PaperColor.vim
+" Author: TKNGUE
+" License: MIT License
+" Last Change: 2017/11/25 11:13:35.
+" =============================================================================
+
+if lightline#colorscheme#background() ==# 'light'
+ let g:lightline#colorscheme#PaperColor#palette = g:lightline#colorscheme#PaperColor_light#palette
+else
+ let g:lightline#colorscheme#PaperColor#palette = g:lightline#colorscheme#PaperColor_dark#palette
+endif
diff --git a/start/lightline/autoload/lightline/colorscheme/PaperColor_dark.vim b/start/lightline/autoload/lightline/colorscheme/PaperColor_dark.vim
new file mode 100644
index 0000000..0a70b34
--- /dev/null
+++ b/start/lightline/autoload/lightline/colorscheme/PaperColor_dark.vim
@@ -0,0 +1,60 @@
+" =============================================================================
+" Filename: autoload/lightline/colorscheme/PaperColor_dark.vim
+" Author: TKNGUE
+" License: MIT License
+" Last Change: 2015-07-27 06:01
+" =============================================================================
+
+let s:red = '#df0000'
+let s:green = '#008700'
+let s:blue = '#00afaf'
+
+let s:pink = '#afdf00'
+let s:olive = '#dfaf5f'
+let s:navy = '#df875f'
+
+let s:orange = '#d75f00'
+let s:purple = '#8959a8'
+let s:aqua = '#3e999f'
+
+" Basics:
+let s:foreground = '#d0d0d0'
+let s:background = '#444444'
+let s:window = '#efefef'
+let s:status = '#c6c6c6'
+let s:error = '#5f0000'
+
+" Tabline:
+let s:tabline_bg = '#3a3a3a'
+let s:tabline_active_fg = '#1c1c1c'
+let s:tabline_active_bg = '#00afaf'
+let s:tabline_inactive_fg = '#c6c6c6'
+let s:tabline_inactive_bg = '#585858'
+
+" Statusline:
+let s:statusline_active_fg = '#1c1c1c'
+let s:statusline_active_bg = '#5f8787'
+let s:statusline_inactive_fg = '#c6c6c6'
+let s:statusline_inactive_bg = '#444444'
+
+" Visual:
+let s:visual_fg = '#000000'
+let s:visual_bg = '#8787af'
+
+let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
+let s:p.normal.left = [ [ s:foreground, s:background ], [ s:statusline_active_fg, s:status ], [ s:statusline_active_fg, s:statusline_active_bg ] ]
+let s:p.normal.right = [ [ s:foreground, s:background ], [ s:statusline_active_fg, s:status ], [ s:statusline_active_fg, s:statusline_active_bg ] ]
+let s:p.normal.middle = [ [ s:statusline_active_fg, s:statusline_active_bg ]]
+let s:p.inactive.right = [ [ s:foreground, s:background ], [ s:foreground, s:background ] ]
+let s:p.inactive.left = [ [ s:foreground, s:background ], [ s:foreground, s:background ] ]
+let s:p.inactive.middle = [ [ s:foreground, s:background ], ]
+let s:p.insert.left = [ [ s:background, s:blue], [ s:statusline_active_fg, s:status ], [ s:statusline_active_fg, s:statusline_active_bg ] ]
+let s:p.replace.left = [ [ s:background, s:pink ], [s:statusline_active_fg, s:status ], [ s:statusline_active_fg, s:statusline_active_bg ] ]
+let s:p.visual.left = [ [ s:visual_fg, s:visual_bg ], [s:statusline_active_fg, s:status ], [ s:statusline_active_fg, s:statusline_active_bg ] ]
+let s:p.tabline.left = [ [s:tabline_inactive_fg, s:tabline_inactive_bg ]]
+let s:p.tabline.tabsel = [ [s:tabline_active_fg, s:tabline_active_bg ] ]
+let s:p.tabline.middle = [ [s:tabline_bg, s:tabline_bg]]
+let s:p.tabline.right = copy(s:p.normal.right)
+let s:p.normal.error = [ [ s:background, s:error ] ]
+
+let g:lightline#colorscheme#PaperColor_dark#palette = lightline#colorscheme#fill(s:p)
diff --git a/start/lightline/autoload/lightline/colorscheme/PaperColor_light.vim b/start/lightline/autoload/lightline/colorscheme/PaperColor_light.vim
new file mode 100644
index 0000000..aef0b86
--- /dev/null
+++ b/start/lightline/autoload/lightline/colorscheme/PaperColor_light.vim
@@ -0,0 +1,55 @@
+" =============================================================================
+" Filename: autoload/lightline/colorscheme/PaperColor_light.vim
+" Author: TKNGUE
+" License: MIT License
+" Last Change: 2015/07/28 07:46:40.
+" =============================================================================
+
+let s:red = '#df0000'
+let s:green = '#008700'
+let s:blue = '#4271ae'
+let s:pink = '#d7005f'
+let s:olive = '#718c00'
+let s:navy = '#005f87'
+let s:orange = '#d75f00'
+let s:purple = '#8959a8'
+let s:aqua = '#3e999f'
+
+" Basics:
+let s:foreground = '#4d4d4c'
+let s:background = '#F5F5F5'
+let s:window = '#efefef'
+let s:status = s:aqua
+let s:error = '#ffafdf'
+
+" Tabline:
+let s:tabline_bg = s:navy
+let s:tabline_active_fg = s:foreground
+let s:tabline_active_bg = s:window
+let s:tabline_inactive_fg = s:background
+let s:tabline_inactive_bg = s:aqua
+
+" Statusline:
+let s:statusline_active_fg = s:window
+let s:statusline_active_bg = s:navy
+let s:statusline_inactive_fg = s:foreground
+let s:statusline_inactive_bg = '#dadada'
+
+let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
+let s:p.normal.left = [ [ s:foreground, s:background ], [ s:statusline_active_fg, s:status ], [ s:statusline_active_fg, s:statusline_active_bg ] ]
+let s:p.normal.right = [ [ s:foreground, s:background ], [ s:statusline_active_fg, s:status ], [ s:statusline_active_fg, s:statusline_active_bg ] ]
+let s:p.normal.middle = [ [ s:statusline_active_fg, s:statusline_active_bg ]]
+let s:p.inactive.right = [ [ s:foreground, s:background ], [ s:foreground, s:background ] ]
+let s:p.inactive.left = [ [ s:foreground, s:background ], [ s:foreground, s:background ] ]
+let s:p.inactive.middle = [ [ s:foreground, s:background ], ]
+let s:p.insert.left = [ [ s:blue, s:background ], [ s:statusline_active_fg, s:status ], [ s:statusline_active_fg, s:statusline_active_bg ] ]
+let s:p.replace.left = [ [ s:background, s:pink ], [s:statusline_active_fg, s:status ], [ s:statusline_active_fg, s:statusline_active_bg ] ]
+let s:p.visual.left = [ [ s:background, s:orange ], [s:statusline_active_fg, s:status ], [ s:statusline_active_fg, s:statusline_active_bg ] ]
+let s:p.tabline.left = [ [s:tabline_inactive_fg, s:tabline_inactive_bg ]]
+let s:p.tabline.tabsel = [ [s:tabline_active_fg, s:tabline_active_bg ] ]
+let s:p.tabline.middle = [ [s:tabline_bg, s:tabline_bg]]
+let s:p.tabline.right = copy(s:p.normal.right)
+let s:p.normal.error = [ [ s:background, s:error ] ]
+let s:p.normal.warning = [ [ s:background, s:olive ] ]
+
+let g:lightline#colorscheme#PaperColor_light#palette = lightline#colorscheme#fill(s:p)
diff --git a/start/lightline/autoload/lightline/colorscheme/Tomorrow.vim b/start/lightline/autoload/lightline/colorscheme/Tomorrow.vim
new file mode 100644
index 0000000..8255966
--- /dev/null
+++ b/start/lightline/autoload/lightline/colorscheme/Tomorrow.vim
@@ -0,0 +1,41 @@
+" =============================================================================
+" Filename: autoload/lightline/colorscheme/Tomorrow.vim
+" Author: itchyny
+" License: MIT License
+" Last Change: 2013/09/07 12:22:37.
+" =============================================================================
+let s:base03 = '#fafafa'
+let s:base023 = '#dfdfdf'
+let s:base02 = '#c8c8c8'
+let s:base01 = '#b4b4b4'
+let s:base00 = '#808080'
+let s:base0 = '#666666'
+let s:base1 = '#555555'
+let s:base2 = '#4f4f4f'
+let s:base3 = '#4d4d4c'
+let s:red = '#c82829'
+let s:orange = '#f5871f'
+let s:yellow = '#eab700'
+let s:green = '#718c00'
+let s:cyan = '#3e999f'
+let s:blue = '#4271ae'
+let s:magenta = '#8959a8'
+
+let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
+let s:p.normal.left = [ [ s:base02, s:blue ], [ s:base3, s:base01 ] ]
+let s:p.normal.right = [ [ s:base02, s:base0 ], [ s:base1, s:base01 ] ]
+let s:p.inactive.right = [ [ s:base02, s:base00 ], [ s:base00, s:base02 ] ]
+let s:p.inactive.left = [ [ s:base0, s:base02 ], [ s:base00, s:base03 ] ]
+let s:p.insert.left = [ [ s:base02, s:green ], [ s:base3, s:base01 ] ]
+let s:p.replace.left = [ [ s:base02, s:orange ], [ s:base3, s:base01 ] ]
+let s:p.visual.left = [ [ s:base02, s:magenta ], [ s:base3, s:base01 ] ]
+let s:p.normal.middle = [ [ s:base1, s:base02 ] ]
+let s:p.inactive.middle = [ [ s:base0, s:base02 ] ]
+let s:p.tabline.left = [ [ s:base2, s:base01 ] ]
+let s:p.tabline.tabsel = [ [ s:base2, s:base023 ] ]
+let s:p.tabline.middle = [ [ s:base01, s:base00 ] ]
+let s:p.tabline.right = copy(s:p.normal.right)
+let s:p.normal.error = [ [ s:red, s:base01 ] ]
+let s:p.normal.warning = [ [ s:yellow, s:base0 ] ]
+
+let g:lightline#colorscheme#Tomorrow#palette = lightline#colorscheme#fill(s:p)
diff --git a/start/lightline/autoload/lightline/colorscheme/Tomorrow_Night.vim b/start/lightline/autoload/lightline/colorscheme/Tomorrow_Night.vim
new file mode 100644
index 0000000..8903180
--- /dev/null
+++ b/start/lightline/autoload/lightline/colorscheme/Tomorrow_Night.vim
@@ -0,0 +1,41 @@
+" =============================================================================
+" Filename: autoload/lightline/colorscheme/Tomorrow_Night.vim
+" Author: itchyny
+" License: MIT License
+" Last Change: 2013/09/07 12:23:38.
+" =============================================================================
+let s:base3 = '#c5c8c6'
+let s:base2 = '#bababa'
+let s:base1 = '#a0a0a0'
+let s:base0 = '#909090'
+let s:base00 = '#666666'
+let s:base01 = '#555555'
+let s:base02 = '#434343'
+let s:base023 = '#303030'
+let s:base03 = '#1d1f21'
+let s:red = '#cc6666'
+let s:orange = '#de935f'
+let s:yellow = '#f0c674'
+let s:green = '#b5bd68'
+let s:cyan = '#8abeb7'
+let s:blue = '#81a2be'
+let s:magenta = '#b294bb'
+
+let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
+let s:p.normal.left = [ [ s:base02, s:blue ], [ s:base3, s:base01 ] ]
+let s:p.normal.right = [ [ s:base02, s:base0 ], [ s:base1, s:base01 ] ]
+let s:p.inactive.right = [ [ s:base02, s:base00 ], [ s:base00, s:base02 ] ]
+let s:p.inactive.left = [ [ s:base0, s:base02 ], [ s:base00, s:base03 ] ]
+let s:p.insert.left = [ [ s:base02, s:green ], [ s:base3, s:base01 ] ]
+let s:p.replace.left = [ [ s:base02, s:orange ], [ s:base3, s:base01 ] ]
+let s:p.visual.left = [ [ s:base02, s:magenta ], [ s:base3, s:base01 ] ]
+let s:p.normal.middle = [ [ s:base1, s:base02 ] ]
+let s:p.inactive.middle = [ [ s:base0, s:base02 ] ]
+let s:p.tabline.left = [ [ s:base2, s:base01 ] ]
+let s:p.tabline.tabsel = [ [ s:base2, s:base023 ] ]
+let s:p.tabline.middle = [ [ s:base01, s:base0 ] ]
+let s:p.tabline.right = copy(s:p.normal.right)
+let s:p.normal.error = [ [ s:red, s:base023 ] ]
+let s:p.normal.warning = [ [ s:yellow, s:base02 ] ]
+
+let g:lightline#colorscheme#Tomorrow_Night#palette = lightline#colorscheme#fill(s:p)
diff --git a/start/lightline/autoload/lightline/colorscheme/Tomorrow_Night_Blue.vim b/start/lightline/autoload/lightline/colorscheme/Tomorrow_Night_Blue.vim
new file mode 100644
index 0000000..31c27f3
--- /dev/null
+++ b/start/lightline/autoload/lightline/colorscheme/Tomorrow_Night_Blue.vim
@@ -0,0 +1,43 @@
+" =============================================================================
+" Filename: autoload/lightline/colorscheme/Tomorrow_Night_Blue.vim
+" Author: itchyny
+" License: MIT License
+" Last Change: 2013/09/07 14:13:21.
+" =============================================================================
+let s:base3 = '#ffffff'
+let s:base23 = '#ffffff'
+let s:base2 = '#ffffff'
+let s:base1 = '#ffffff'
+let s:base0 = '#ffffff'
+let s:base00 = '#6060df'
+let s:base01 = '#6060af'
+let s:base02 = '#606087'
+let s:base023 = '#202087'
+let s:base03 = '#002451'
+let s:red = '#ff9da4'
+let s:orange = '#ffc58f'
+let s:yellow = '#ffeead'
+let s:green = '#d1f1a9'
+let s:cyan = '#99ffff'
+let s:blue = '#bbdaff'
+let s:magenta = '#ebbbff'
+
+
+let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
+let s:p.normal.left = [ [ s:base023, s:blue ], [ s:base3, s:base01 ] ]
+let s:p.normal.right = [ [ s:base02, s:base1 ], [ s:base2, s:base01 ] ]
+let s:p.inactive.right = [ [ s:base02, s:base0 ], [ s:base1, s:base01 ] ]
+let s:p.inactive.left = [ [ s:base02, s:base0 ], [ s:base00, s:base03 ] ]
+let s:p.insert.left = [ [ s:base023, s:green ], [ s:base3, s:base01 ] ]
+let s:p.replace.left = [ [ s:base023, s:orange ], [ s:base3, s:base01 ] ]
+let s:p.visual.left = [ [ s:base023, s:magenta ], [ s:base3, s:base01 ] ]
+let s:p.normal.middle = [ [ s:base1, s:base02 ] ]
+let s:p.inactive.middle = [ [ s:base0, s:base02 ] ]
+let s:p.tabline.left = [ [ s:base2, s:base01 ] ]
+let s:p.tabline.tabsel = [ [ s:base2, s:base03 ] ]
+let s:p.tabline.middle = [ [ s:base01, s:base1 ] ]
+let s:p.tabline.right = copy(s:p.normal.right)
+let s:p.normal.error = [ [ s:base023, s:red ] ]
+let s:p.normal.warning = [ [ s:base023, s:yellow ] ]
+
+let g:lightline#colorscheme#Tomorrow_Night_Blue#palette = lightline#colorscheme#fill(s:p)
diff --git a/start/lightline/autoload/lightline/colorscheme/Tomorrow_Night_Bright.vim b/start/lightline/autoload/lightline/colorscheme/Tomorrow_Night_Bright.vim
new file mode 100644
index 0000000..5b81a31
--- /dev/null
+++ b/start/lightline/autoload/lightline/colorscheme/Tomorrow_Night_Bright.vim
@@ -0,0 +1,42 @@
+" =============================================================================
+" Filename: autoload/lightline/colorscheme/Tomorrow_Night_Bright.vim
+" Author: itchyny
+" License: MIT License
+" Last Change: 2013/09/07 14:13:26.
+" =============================================================================
+let s:base3 = '#eaeaea'
+let s:base23 = '#d0d0d0'
+let s:base2 = '#c6c6c6'
+let s:base1 = '#b2b2b2'
+let s:base0 = '#949494'
+let s:base00 = '#767676'
+let s:base01 = '#606060'
+let s:base02 = '#4e4e4e'
+let s:base023 = '#262626'
+let s:base03 = '#12124c'
+let s:red = '#d54e53'
+let s:orange = '#e78c45'
+let s:yellow = '#e7c547'
+let s:green = '#b9ca4a'
+let s:cyan = '#70c0b1'
+let s:blue = '#7aa6da'
+let s:magenta = '#c397d8'
+
+let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
+let s:p.normal.left = [ [ s:base023, s:blue ], [ s:base3, s:base01 ] ]
+let s:p.normal.right = [ [ s:base02, s:base1 ], [ s:base2, s:base01 ] ]
+let s:p.inactive.right = [ [ s:base02, s:base0 ], [ s:base1, s:base01 ] ]
+let s:p.inactive.left = [ [ s:base02, s:base0 ], [ s:base00, s:base03 ] ]
+let s:p.insert.left = [ [ s:base023, s:green ], [ s:base3, s:base01 ] ]
+let s:p.replace.left = [ [ s:base023, s:orange ], [ s:base3, s:base01 ] ]
+let s:p.visual.left = [ [ s:base023, s:magenta ], [ s:base3, s:base01 ] ]
+let s:p.normal.middle = [ [ s:base1, s:base02 ] ]
+let s:p.inactive.middle = [ [ s:base0, s:base02 ] ]
+let s:p.tabline.left = [ [ s:base2, s:base01 ] ]
+let s:p.tabline.tabsel = [ [ s:base2, s:base023 ] ]
+let s:p.tabline.middle = [ [ s:base01, s:base1 ] ]
+let s:p.tabline.right = copy(s:p.normal.right)
+let s:p.normal.error = [ [ s:red, s:base023 ] ]
+let s:p.normal.warning = [ [ s:yellow, s:base02 ] ]
+
+let g:lightline#colorscheme#Tomorrow_Night_Bright#palette = lightline#colorscheme#fill(s:p)
diff --git a/start/lightline/autoload/lightline/colorscheme/Tomorrow_Night_Eighties.vim b/start/lightline/autoload/lightline/colorscheme/Tomorrow_Night_Eighties.vim
new file mode 100644
index 0000000..5124ecc
--- /dev/null
+++ b/start/lightline/autoload/lightline/colorscheme/Tomorrow_Night_Eighties.vim
@@ -0,0 +1,42 @@
+" =============================================================================
+" Filename: autoload/lightline/colorscheme/Tomorrow_Night_Eighties.vim
+" Author: itchyny
+" License: MIT License
+" Last Change: 2013/09/07 14:14:14.
+" =============================================================================
+let s:base3 = '#cccccc'
+let s:base23 = '#bbbbbb'
+let s:base2 = '#aaaaaa'
+let s:base1 = '#999999'
+let s:base0 = '#777777'
+let s:base00 = '#666666'
+let s:base01 = '#555555'
+let s:base02 = '#444444'
+let s:base023 = '#333333'
+let s:base03 = '#2d2d2d'
+let s:red = '#f2777a'
+let s:orange = '#f99157'
+let s:yellow = '#ffcc66'
+let s:green = '#99cc99'
+let s:cyan = '#009999'
+let s:blue = '#99cccc'
+let s:magenta = '#cc99cc'
+
+let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
+let s:p.normal.left = [ [ s:base023, s:blue ], [ s:base3, s:base01 ] ]
+let s:p.normal.right = [ [ s:base02, s:base1 ], [ s:base2, s:base01 ] ]
+let s:p.inactive.right = [ [ s:base02, s:base0 ], [ s:base1, s:base01 ] ]
+let s:p.inactive.left = [ [ s:base02, s:base0 ], [ s:base00, s:base03 ] ]
+let s:p.insert.left = [ [ s:base023, s:green ], [ s:base3, s:base01 ] ]
+let s:p.replace.left = [ [ s:base023, s:orange ], [ s:base3, s:base01 ] ]
+let s:p.visual.left = [ [ s:base023, s:magenta ], [ s:base3, s:base01 ] ]
+let s:p.normal.middle = [ [ s:base1, s:base02 ] ]
+let s:p.inactive.middle = [ [ s:base0, s:base02 ] ]
+let s:p.tabline.left = [ [ s:base2, s:base01 ] ]
+let s:p.tabline.tabsel = [ [ s:base2, s:base03 ] ]
+let s:p.tabline.middle = [ [ s:base01, s:base1 ] ]
+let s:p.tabline.right = copy(s:p.normal.right)
+let s:p.normal.error = [ [ s:base023, s:red ] ]
+let s:p.normal.warning = [ [ s:base023, s:yellow ] ]
+
+let g:lightline#colorscheme#Tomorrow_Night_Eighties#palette = lightline#colorscheme#fill(s:p)
diff --git a/start/lightline/autoload/lightline/colorscheme/darcula.vim b/start/lightline/autoload/lightline/colorscheme/darcula.vim
new file mode 100644
index 0000000..928e8b7
--- /dev/null
+++ b/start/lightline/autoload/lightline/colorscheme/darcula.vim
@@ -0,0 +1,37 @@
+" =============================================================================
+" Filename: autoload/lightline/colorscheme/darcula.vim
+" Author: kkopec
+" License: MIT License
+" Last Change: 2017/02/11 21:18:54.
+" =============================================================================
+
+let s:black = [ '#2b2b2b', 235 ]
+let s:gray = [ '#323232', 236 ]
+let s:white = [ '#a9b7c6', 250 ]
+let s:blue = [ '#6897bb' , 67 ]
+let s:green = [ '#629755', 71 ]
+let s:purple = [ '#9876aa', 104 ]
+let s:red = [ '#ff6b68', 204 ]
+let s:yellow = [ '#ffc66d', 222 ]
+
+let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
+let s:p.normal.left = [ [ s:black, s:purple ], [ s:purple, s:gray ] ]
+let s:p.normal.right = [ [ s:black, s:purple ], [ s:purple, s:gray ] ]
+let s:p.inactive.left = [ [ s:black, s:blue ], [ s:blue, s:gray ] ]
+let s:p.inactive.right = [ [ s:black, s:blue ], [ s:blue, s:gray ] ]
+let s:p.insert.left = [ [ s:black, s:green ], [ s:green, s:gray ] ]
+let s:p.insert.right = [ [ s:black, s:green ], [ s:green, s:gray ] ]
+let s:p.replace.left = [ [ s:black, s:red ], [ s:red, s:gray ] ]
+let s:p.replace.right = [ [ s:black, s:red ], [ s:red, s:gray ] ]
+let s:p.visual.left = [ [ s:black, s:yellow ], [ s:yellow, s:gray ] ]
+let s:p.visual.right = [ [ s:black, s:yellow ], [ s:yellow, s:gray ] ]
+let s:p.normal.middle = [ [ s:white, s:gray ] ]
+let s:p.inactive.middle = [ [ s:white, s:gray ] ]
+let s:p.tabline.left = [ [ s:blue, s:gray ] ]
+let s:p.tabline.tabsel = [ [ s:black, s:blue ] ]
+let s:p.tabline.middle = [ [ s:blue, s:gray ] ]
+let s:p.tabline.right = [ [ s:black, s:blue ] ]
+let s:p.normal.error = [ [ s:red, s:black ] ]
+let s:p.normal.warning = [ [ s:yellow, s:black ] ]
+
+let g:lightline#colorscheme#darcula#palette = lightline#colorscheme#flatten(s:p)
diff --git a/start/lightline/autoload/lightline/colorscheme/default.vim b/start/lightline/autoload/lightline/colorscheme/default.vim
new file mode 100644
index 0000000..ee9835c
--- /dev/null
+++ b/start/lightline/autoload/lightline/colorscheme/default.vim
@@ -0,0 +1,8 @@
+" =============================================================================
+" Filename: autoload/lightline/colorscheme/default.vim
+" Author: itchyny
+" License: MIT License
+" Last Change: 2013/08/22 06:05:52.
+" =============================================================================
+
+let g:lightline#colorscheme#default#palette = g:lightline#colorscheme#powerline#palette
diff --git a/start/lightline/autoload/lightline/colorscheme/deus.vim b/start/lightline/autoload/lightline/colorscheme/deus.vim
new file mode 100644
index 0000000..0a7da60
--- /dev/null
+++ b/start/lightline/autoload/lightline/colorscheme/deus.vim
@@ -0,0 +1,40 @@
+" =============================================================================
+" Filename: autoload/lightline/colorscheme/deus.vim
+" Author: nikersify
+" License: MIT License
+" Last Change: 2018/01/24 13:26:00
+" =============================================================================
+
+let s:term_red = 204
+let s:term_green = 114
+let s:term_yellow = 180
+let s:term_blue = 39
+let s:term_purple = 170
+let s:term_white = 145
+let s:term_black = 235
+let s:term_grey = 236
+
+let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
+
+let s:p.normal.left = [ [ '#292c33', '#98c379', s:term_black, s:term_green, 'bold' ], [ '#98c379', '#292c33', s:term_green, s:term_black ] ]
+let s:p.normal.right = [ [ '#292c33', '#98c379', s:term_black, s:term_green ], [ '#abb2bf', '#3e4452', s:term_white, s:term_grey ], [ '#98c379', '#292c33', s:term_green, s:term_black ] ]
+let s:p.inactive.right = [ [ '#292c33', '#61afef', s:term_black, s:term_blue], [ '#abb2bf', '#3e4452', s:term_white, s:term_grey ] ]
+let s:p.inactive.left = s:p.inactive.right[1:]
+" her
+let s:p.insert.left = [ [ '#292c33', '#61afef', s:term_black, s:term_blue, 'bold' ], [ '#61afef', '#292c33', s:term_blue, s:term_black ] ]
+let s:p.insert.right = [ [ '#292c33', '#61afef', s:term_black, s:term_blue ], [ '#ABB2BF', '#3E4452', s:term_white, s:term_grey ], [ '#61afef', '#292c33', s:term_blue, s:term_black ] ]
+let s:p.replace.left = [ [ '#292c33', '#e06c75', s:term_black, s:term_red, 'bold' ], [ '#e06c75', '#292c33', s:term_red, s:term_black ] ]
+let s:p.replace.right = [ [ '#292c33', '#e06c75', s:term_black, s:term_red, 'bold' ], s:p.normal.right[1], [ '#e06c75', '#292c33', s:term_red, s:term_black ] ]
+let s:p.visual.left = [ [ '#292c33', '#c678dd', s:term_black, s:term_purple, 'bold' ], [ '#c678dd', '#292c33', s:term_purple, s:term_black ] ]
+let s:p.visual.right = [ [ '#292c33', '#c678dd', s:term_black, s:term_purple, 'bold' ], s:p.normal.right[1], [ '#c678dd', '#292c33', s:term_purple, s:term_black ] ]
+let s:p.normal.middle = [ [ '#abb2bf', '#292c33', s:term_white, s:term_black ] ]
+let s:p.insert.middle = s:p.normal.middle
+let s:p.replace.middle = s:p.normal.middle
+let s:p.tabline.left = [ s:p.normal.left[1] ]
+let s:p.tabline.tabsel = [ s:p.normal.left[0] ]
+let s:p.tabline.middle = s:p.normal.middle
+let s:p.tabline.right = [ s:p.normal.left[1] ]
+let s:p.normal.error = [ [ '#292c33', '#e06c75', s:term_black, s:term_red ] ]
+let s:p.normal.warning = [ [ '#292c33', '#e5c07b', s:term_black, s:term_yellow ] ]
+
+let g:lightline#colorscheme#deus#palette = lightline#colorscheme#fill(s:p)
diff --git a/start/lightline/autoload/lightline/colorscheme/jellybeans.vim b/start/lightline/autoload/lightline/colorscheme/jellybeans.vim
new file mode 100644
index 0000000..15b2b35
--- /dev/null
+++ b/start/lightline/autoload/lightline/colorscheme/jellybeans.vim
@@ -0,0 +1,40 @@
+" =============================================================================
+" Filename: autoload/lightline/colorscheme/jellybeans.vim
+" Author: itchyny
+" License: MIT License
+" Last Change: 2013/09/07 12:21:04.
+" =============================================================================
+let s:base03 = [ '#151513', 233 ]
+let s:base02 = [ '#30302c ', 236 ]
+let s:base01 = [ '#4e4e43', 239 ]
+let s:base00 = [ '#666656', 242 ]
+let s:base0 = [ '#808070', 244 ]
+let s:base1 = [ '#949484', 246 ]
+let s:base2 = [ '#a8a897', 248 ]
+let s:base3 = [ '#e8e8d3', 253 ]
+let s:yellow = [ '#ffb964', 215 ]
+let s:orange = [ '#fad07a', 222 ]
+let s:red = [ '#cf6a4c', 167 ]
+let s:magenta = [ '#f0a0c0', 217 ]
+let s:blue = [ '#8197bf', 103 ]
+let s:cyan = [ '#8fbfdc', 110 ]
+let s:green = [ '#99ad6a', 107 ]
+
+let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
+let s:p.normal.left = [ [ s:base02, s:blue ], [ s:base3, s:base01 ] ]
+let s:p.normal.right = [ [ s:base02, s:base1 ], [ s:base2, s:base01 ] ]
+let s:p.inactive.right = [ [ s:base02, s:base00 ], [ s:base0, s:base02 ] ]
+let s:p.inactive.left = [ [ s:base0, s:base02 ], [ s:base00, s:base02 ] ]
+let s:p.insert.left = [ [ s:base02, s:green ], [ s:base3, s:base01 ] ]
+let s:p.replace.left = [ [ s:base02, s:red ], [ s:base3, s:base01 ] ]
+let s:p.visual.left = [ [ s:base02, s:magenta ], [ s:base3, s:base01 ] ]
+let s:p.normal.middle = [ [ s:base0, s:base02 ] ]
+let s:p.inactive.middle = [ [ s:base00, s:base02 ] ]
+let s:p.tabline.left = [ [ s:base3, s:base00 ] ]
+let s:p.tabline.tabsel = [ [ s:base3, s:base02 ] ]
+let s:p.tabline.middle = [ [ s:base01, s:base1 ] ]
+let s:p.tabline.right = copy(s:p.normal.right)
+let s:p.normal.error = [ [ s:red, s:base02 ] ]
+let s:p.normal.warning = [ [ s:yellow, s:base01 ] ]
+
+let g:lightline#colorscheme#jellybeans#palette = lightline#colorscheme#flatten(s:p)
diff --git a/start/lightline/autoload/lightline/colorscheme/landscape.vim b/start/lightline/autoload/lightline/colorscheme/landscape.vim
new file mode 100644
index 0000000..68d0920
--- /dev/null
+++ b/start/lightline/autoload/lightline/colorscheme/landscape.vim
@@ -0,0 +1,25 @@
+" =============================================================================
+" Filename: autoload/lightline/colorscheme/landscape.vim
+" Author: itchyny
+" License: MIT License
+" Last Change: 2015/11/26 21:49:44.
+" =============================================================================
+
+let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
+let s:p.normal.left = [ ['#0000ff', '#ffffff', 21, 231, 'bold' ], [ '#ffffff', '#0000ff', 231, 21 ] ]
+let s:p.normal.right = [ [ '#303030', '#d0d0d0', 236, 252 ], [ '#303030', '#8a8a8a', 236, 245 ], [ '#bcbcbc', '#585858', 250, 240 ] ]
+let s:p.inactive.right = [ [ '#121212', '#606060', 233, 241 ], [ '#121212', '#3a3a3a', 233, 237 ], [ '#121212', '#262626', 233, 235 ] ]
+let s:p.inactive.left = s:p.inactive.right[1:]
+let s:p.insert.left = [ ['#005f00', '#ffffff', 22, 231, 'bold' ], [ '#ffffff', '#005f00', 231, 22 ] ]
+let s:p.replace.left = [ [ '#af0000', '#ffffff', 124, 231, 'bold' ], [ '#ffffff', '#af0000', 231, 124 ] ]
+let s:p.visual.left = [ [ '#5f00ff', '#ffffff', 57, 231, 'bold' ], [ '#ffffff', '#5f00ff', 231, 57 ] ]
+let s:p.normal.middle = [ [ '#8a8a8a', '#303030', 245, 236 ] ]
+let s:p.inactive.middle = [ [ '#303030', '#121212', 236, 233 ] ]
+let s:p.tabline.left = [ [ '#d0d0d0', '#666666', 252, 242 ] ]
+let s:p.tabline.tabsel = [ [ '#dadada', '#121212', 253, 233 ] ]
+let s:p.tabline.middle = [ [ '#8a8a8a', '#3a3a3a', 245, 237 ] ]
+let s:p.tabline.right = [ [ '#d0d0d0', '#666666', 252, 242 ] ]
+let s:p.normal.error = [ [ '#d0d0d0', '#ff0000', 252, 196 ] ]
+let s:p.normal.warning = [ [ '#262626', '#ffff00', 235, 226 ] ]
+
+let g:lightline#colorscheme#landscape#palette = s:p
diff --git a/start/lightline/autoload/lightline/colorscheme/materia.vim b/start/lightline/autoload/lightline/colorscheme/materia.vim
new file mode 100644
index 0000000..fdab2cb
--- /dev/null
+++ b/start/lightline/autoload/lightline/colorscheme/materia.vim
@@ -0,0 +1,63 @@
+" =============================================================================
+" Filename: autoload/lightline/colorscheme/materia.vim
+" Author: Lokesh Krishna
+" License: MIT License
+" Last Change: 2017/11/25 11:13:40.
+" =============================================================================
+
+" Common colors
+let s:fg = '#d5dbe5'
+let s:blue = '#89ddff'
+let s:green = '#8bd649'
+let s:purple = '#82aaff'
+let s:red1 = '#ec5f67'
+let s:red2 = '#ec5f67'
+let s:yellow = '#ffcc00'
+
+let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
+
+if lightline#colorscheme#background() ==# 'light'
+ " Light variant
+ let s:bg = '#ffffff'
+ let s:gray1 = '#2c393f'
+ let s:gray2 = '#d5dbe5'
+ let s:gray3 = '#707880'
+
+ let s:p.normal.left = [ [ s:bg, s:green, 'bold' ], [ s:gray1, s:gray3 ] ]
+ let s:p.normal.middle = [ [ s:gray1, s:gray2 ] ]
+ let s:p.inactive.left = [ [ s:bg, s:gray3 ], [ s:bg, s:gray3 ] ]
+ let s:p.inactive.middle = [ [ s:gray3, s:gray2 ] ]
+ let s:p.inactive.right = [ [ s:bg, s:gray3 ], [ s:bg, s:gray3 ] ]
+ let s:p.insert.left = [ [ s:bg, s:blue, 'bold' ], [ s:gray1, s:gray3 ] ]
+ let s:p.replace.left = [ [ s:bg, s:red1, 'bold' ], [ s:gray1, s:gray3 ] ]
+ let s:p.visual.left = [ [ s:bg, s:purple, 'bold' ], [ s:gray1, s:gray3 ] ]
+else
+ " Dark variant
+ let s:bg = '#263238'
+ let s:gray1 = '#37474f'
+ let s:gray2 = '#2c393f'
+ let s:gray3 = '#37474f'
+
+ let s:p.normal.left = [ [ s:bg, s:green, 'bold' ], [ s:fg, s:gray3 ] ]
+ let s:p.normal.middle = [ [ s:fg, s:gray2 ] ]
+ let s:p.inactive.left = [ [ s:gray1, s:bg ], [ s:gray1, s:bg ] ]
+ let s:p.inactive.middle = [ [ s:gray1, s:gray2 ] ]
+ let s:p.inactive.right = [ [ s:gray1, s:bg ], [ s:gray1, s:bg ] ]
+ let s:p.insert.left = [ [ s:bg, s:blue, 'bold' ], [ s:fg, s:gray3 ] ]
+ let s:p.replace.left = [ [ s:bg, s:red1, 'bold' ], [ s:fg, s:gray3 ] ]
+ let s:p.visual.left = [ [ s:bg, s:purple, 'bold' ], [ s:fg, s:gray3 ] ]
+endif
+
+" Common
+let s:p.normal.right = [ [ s:bg, s:green, 'bold' ], [ s:bg, s:green, 'bold' ] ]
+let s:p.normal.error = [ [ s:red2, s:bg ] ]
+let s:p.normal.warning = [ [ s:yellow, s:bg ] ]
+let s:p.insert.right = [ [ s:bg, s:blue, 'bold' ], [ s:bg, s:blue, 'bold' ] ]
+let s:p.replace.right = [ [ s:bg, s:red1, 'bold' ], [ s:bg, s:red1, 'bold' ] ]
+let s:p.visual.right = [ [ s:bg, s:purple, 'bold' ], [ s:bg, s:purple, 'bold' ] ]
+let s:p.tabline.left = [ [ s:bg, s:gray3 ] ]
+let s:p.tabline.tabsel = [ [ s:bg, s:purple, 'bold' ] ]
+let s:p.tabline.middle = [ [ s:gray3, s:gray2 ] ]
+let s:p.tabline.right = copy(s:p.normal.right)
+
+let g:lightline#colorscheme#materia#palette = lightline#colorscheme#fill(s:p)
diff --git a/start/lightline/autoload/lightline/colorscheme/material.vim b/start/lightline/autoload/lightline/colorscheme/material.vim
new file mode 100644
index 0000000..0d704b7
--- /dev/null
+++ b/start/lightline/autoload/lightline/colorscheme/material.vim
@@ -0,0 +1,63 @@
+" =============================================================================
+" Filename: autoload/lightline/colorscheme/material.vim
+" Author: Lokesh Krishna
+" License: MIT License
+" Last Change: 2017/11/25 11:13:42.
+" =============================================================================
+
+" Common colors
+let s:fg = '#eeffff'
+let s:blue = '#82aaff'
+let s:green = '#c3e88d'
+let s:purple = '#c792ea'
+let s:red1 = '#f07178'
+let s:red2 = '#ff5370'
+let s:yellow = '#ffcb6b'
+
+let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
+
+if lightline#colorscheme#background() ==# 'light'
+ " Light variant
+ let s:bg = '#ffffff'
+ let s:gray1 = '#2e3c43'
+ let s:gray2 = '#eeffff'
+ let s:gray3 = '#546e7a'
+
+ let s:p.normal.left = [ [ s:bg, s:blue, 'bold' ], [ s:gray1, s:gray3 ] ]
+ let s:p.normal.middle = [ [ s:gray1, s:gray2 ] ]
+ let s:p.inactive.left = [ [ s:bg, s:gray3 ], [ s:bg, s:gray3 ] ]
+ let s:p.inactive.middle = [ [ s:gray3, s:gray2 ] ]
+ let s:p.inactive.right = [ [ s:bg, s:gray3 ], [ s:bg, s:gray3 ] ]
+ let s:p.insert.left = [ [ s:bg, s:green, 'bold' ], [ s:gray1, s:gray3 ] ]
+ let s:p.replace.left = [ [ s:bg, s:red1, 'bold' ], [ s:gray1, s:gray3 ] ]
+ let s:p.visual.left = [ [ s:bg, s:purple, 'bold' ], [ s:gray1, s:gray3 ] ]
+else
+ " Dark variant
+ let s:bg = '#263238'
+ let s:gray1 = '#314549'
+ let s:gray2 = '#2E3C43'
+ let s:gray3 = '#314549'
+
+ let s:p.normal.left = [ [ s:bg, s:blue, 'bold' ], [ s:fg, s:gray3 ] ]
+ let s:p.normal.middle = [ [ s:fg, s:gray2 ] ]
+ let s:p.inactive.left = [ [ s:gray1, s:bg ], [ s:gray1, s:bg ] ]
+ let s:p.inactive.middle = [ [ s:gray1, s:gray2 ] ]
+ let s:p.inactive.right = [ [ s:gray1, s:bg ], [ s:gray1, s:bg ] ]
+ let s:p.insert.left = [ [ s:bg, s:green, 'bold' ], [ s:fg, s:gray3 ] ]
+ let s:p.replace.left = [ [ s:bg, s:red1, 'bold' ], [ s:fg, s:gray3 ] ]
+ let s:p.visual.left = [ [ s:bg, s:purple, 'bold' ], [ s:fg, s:gray3 ] ]
+endif
+
+" Common
+let s:p.normal.right = [ [ s:bg, s:blue, 'bold' ], [ s:bg, s:blue, 'bold' ] ]
+let s:p.normal.error = [ [ s:red2, s:bg ] ]
+let s:p.normal.warning = [ [ s:yellow, s:bg ] ]
+let s:p.insert.right = [ [ s:bg, s:green, 'bold' ], [ s:bg, s:green, 'bold' ] ]
+let s:p.replace.right = [ [ s:bg, s:red1, 'bold' ], [ s:bg, s:red1, 'bold' ] ]
+let s:p.visual.right = [ [ s:bg, s:purple, 'bold' ], [ s:bg, s:purple, 'bold' ] ]
+let s:p.tabline.left = [ [ s:fg, s:gray3 ] ]
+let s:p.tabline.tabsel = [ [ s:bg, s:purple, 'bold' ] ]
+let s:p.tabline.middle = [ [ s:gray3, s:gray2 ] ]
+let s:p.tabline.right = [ [ s:bg, s:red1, 'bold' ] ]
+
+let g:lightline#colorscheme#material#palette = lightline#colorscheme#fill(s:p)
diff --git a/start/lightline/autoload/lightline/colorscheme/molokai.vim b/start/lightline/autoload/lightline/colorscheme/molokai.vim
new file mode 100644
index 0000000..9d066a1
--- /dev/null
+++ b/start/lightline/autoload/lightline/colorscheme/molokai.vim
@@ -0,0 +1,36 @@
+" =============================================================================
+" Filename: autoload/lightline/colorscheme/molokai.vim
+" Author: challsted
+" License: MIT License
+" Last Change: 2016/11/17 00:27:58.
+" =============================================================================
+"
+let s:black = [ '#232526', 233 ]
+let s:gray = [ '#808080', 244 ]
+let s:white = [ '#f8f8f2', 234 ]
+let s:cyan = [ '#66d9ef', 81 ]
+let s:green = [ '#a6e22e', 118 ]
+let s:orange = [ '#ef5939', 166 ]
+let s:pink = [ '#f92672', 161 ]
+let s:red = [ '#ff0000', 160 ]
+let s:yellow = [ '#e6db74', 229 ]
+
+let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
+
+let s:p.normal.left = [ [ s:black, s:cyan ], [ s:orange, s:black ] ]
+let s:p.normal.middle = [ [ s:orange, s:black ] ]
+let s:p.normal.right = [ [ s:pink, s:black ], [ s:black, s:pink ] ]
+let s:p.normal.error = [ [ s:pink, s:black ] ]
+let s:p.normal.warning = [ [ s:yellow, s:black ] ]
+let s:p.insert.left = [ [ s:black, s:green ], [ s:green, s:black ] ]
+let s:p.visual.left = [ [ s:black, s:yellow ], [ s:yellow, s:black ] ]
+let s:p.replace.left = [ [ s:black, s:red ], [ s:red, s:black ] ]
+let s:p.inactive.left = [ [ s:pink, s:black ], [ s:white, s:black ] ]
+let s:p.inactive.middle = [ [ s:gray, s:black ] ]
+let s:p.inactive.right = [ [ s:white, s:pink ], [ s:pink, s:black ] ]
+let s:p.tabline.left = [ [ s:pink, s:black ] ]
+let s:p.tabline.middle = [ [ s:pink, s:black] ]
+let s:p.tabline.right = copy(s:p.normal.right)
+let s:p.tabline.tabsel = [ [ s:black, s:pink ] ]
+
+let g:lightline#colorscheme#molokai#palette = lightline#colorscheme#flatten(s:p)
diff --git a/start/lightline/autoload/lightline/colorscheme/nord.vim b/start/lightline/autoload/lightline/colorscheme/nord.vim
new file mode 100644
index 0000000..96d24ae
--- /dev/null
+++ b/start/lightline/autoload/lightline/colorscheme/nord.vim
@@ -0,0 +1,46 @@
+" =============================================================================
+" Filename: autoload/lightline/colorscheme/nord.vim
+" Author: arcticicestudio
+" License: MIT
+" Last Change: 2017/11/12 20:27:51
+" =============================================================================
+
+let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
+
+let s:nord0 = ["#2E3440", "NONE"]
+let s:nord1 = ["#3B4252", 0]
+let s:nord2 = ["#434C5E", "NONE"]
+let s:nord3 = ["#4C566A", 8]
+let s:nord4 = ["#D8DEE9", "NONE"]
+let s:nord5 = ["#E5E9F0", 7]
+let s:nord6 = ["#ECEFF4", 15]
+let s:nord7 = ["#8FBCBB", 14]
+let s:nord8 = ["#88C0D0", 6]
+let s:nord9 = ["#81A1C1", 4]
+let s:nord10 = ["#5E81AC", 12]
+let s:nord11 = ["#BF616A", 1]
+let s:nord12 = ["#D08770", 11]
+let s:nord13 = ["#EBCB8B", 3]
+let s:nord14 = ["#A3BE8C", 2]
+let s:nord15 = ["#B48EAD", 5]
+
+let s:p.normal.left = [ [ s:nord1, s:nord8 ], [ s:nord5, s:nord1 ] ]
+let s:p.normal.middle = [ [ s:nord5, s:nord3 ] ]
+let s:p.normal.right = [ [ s:nord5, s:nord1 ], [ s:nord5, s:nord1 ] ]
+let s:p.normal.warning = [ [ s:nord1, s:nord13 ] ]
+let s:p.normal.error = [ [ s:nord1, s:nord11 ] ]
+
+let s:p.inactive.left = [ [ s:nord1, s:nord8 ], [ s:nord5, s:nord1 ] ]
+let s:p.inactive.middle = [ [ s:nord5, s:nord1 ] ]
+let s:p.inactive.right = [ [ s:nord5, s:nord1 ], [ s:nord5, s:nord1 ] ]
+
+let s:p.insert.left = [ [ s:nord1, s:nord6 ], [ s:nord5, s:nord1 ] ]
+let s:p.replace.left = [ [ s:nord1, s:nord13 ], [ s:nord5, s:nord1 ] ]
+let s:p.visual.left = [ [ s:nord1, s:nord7 ], [ s:nord5, s:nord1 ] ]
+
+let s:p.tabline.left = [ [ s:nord5, s:nord3 ] ]
+let s:p.tabline.middle = [ [ s:nord5, s:nord3 ] ]
+let s:p.tabline.right = [ [ s:nord5, s:nord3 ] ]
+let s:p.tabline.tabsel = [ [ s:nord1, s:nord8 ] ]
+
+let g:lightline#colorscheme#nord#palette = lightline#colorscheme#flatten(s:p)
diff --git a/start/lightline/autoload/lightline/colorscheme/one.vim b/start/lightline/autoload/lightline/colorscheme/one.vim
new file mode 100644
index 0000000..a28fb8d
--- /dev/null
+++ b/start/lightline/autoload/lightline/colorscheme/one.vim
@@ -0,0 +1,64 @@
+" =============================================================================
+" Filename: autoload/lightline/colorscheme/one.vim
+" Author: Zoltan Dalmadi
+" License: MIT License
+" Last Change: 2017/11/28 21:53:01.
+" =============================================================================
+
+" Common colors
+let s:fg = [ '#abb2bf', 145 ]
+let s:blue = [ '#61afef', 75 ]
+let s:green = [ '#98c379', 76 ]
+let s:purple = [ '#c678dd', 176 ]
+let s:red1 = [ '#e06c75', 168 ]
+let s:red2 = [ '#be5046', 168 ]
+let s:yellow = [ '#e5c07b', 180 ]
+
+let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
+
+if lightline#colorscheme#background() ==# 'light'
+ " Light variant
+ let s:bg = [ '#fafafa', 255 ]
+ let s:gray1 = [ '#494b53', 238 ]
+ let s:gray2 = [ '#f0f0f0', 255 ]
+ let s:gray3 = [ '#d0d0d0', 250 ]
+ let s:green = [ '#98c379', 35 ]
+
+ let s:p.normal.left = [ [ s:bg, s:green, 'bold' ], [ s:gray1, s:gray3 ] ]
+ let s:p.normal.middle = [ [ s:gray1, s:gray2 ] ]
+ let s:p.inactive.left = [ [ s:bg, s:gray3 ], [ s:bg, s:gray3 ] ]
+ let s:p.inactive.middle = [ [ s:gray3, s:gray2 ] ]
+ let s:p.inactive.right = [ [ s:bg, s:gray3 ], [ s:bg, s:gray3 ] ]
+ let s:p.insert.left = [ [ s:bg, s:blue, 'bold' ], [ s:gray1, s:gray3 ] ]
+ let s:p.replace.left = [ [ s:bg, s:red1, 'bold' ], [ s:gray1, s:gray3 ] ]
+ let s:p.visual.left = [ [ s:bg, s:purple, 'bold' ], [ s:gray1, s:gray3 ] ]
+else
+ " Dark variant
+ let s:bg = [ '#282c34', 235 ]
+ let s:gray1 = [ '#5c6370', 241 ]
+ let s:gray2 = [ '#2c323d', 235 ]
+ let s:gray3 = [ '#3e4452', 240 ]
+
+ let s:p.normal.left = [ [ s:bg, s:green, 'bold' ], [ s:fg, s:gray3 ] ]
+ let s:p.normal.middle = [ [ s:fg, s:gray2 ] ]
+ let s:p.inactive.left = [ [ s:gray1, s:bg ], [ s:gray1, s:bg ] ]
+ let s:p.inactive.middle = [ [ s:gray1, s:gray2 ] ]
+ let s:p.inactive.right = [ [ s:gray1, s:bg ], [ s:gray1, s:bg ] ]
+ let s:p.insert.left = [ [ s:bg, s:blue, 'bold' ], [ s:fg, s:gray3 ] ]
+ let s:p.replace.left = [ [ s:bg, s:red1, 'bold' ], [ s:fg, s:gray3 ] ]
+ let s:p.visual.left = [ [ s:bg, s:purple, 'bold' ], [ s:fg, s:gray3 ] ]
+endif
+
+" Common
+let s:p.normal.right = [ [ s:bg, s:green, 'bold' ], [ s:bg, s:green, 'bold' ] ]
+let s:p.normal.error = [ [ s:red2, s:bg ] ]
+let s:p.normal.warning = [ [ s:yellow, s:bg ] ]
+let s:p.insert.right = [ [ s:bg, s:blue, 'bold' ], [ s:bg, s:blue, 'bold' ] ]
+let s:p.replace.right = [ [ s:bg, s:red1, 'bold' ], [ s:bg, s:red1, 'bold' ] ]
+let s:p.visual.right = [ [ s:bg, s:purple, 'bold' ], [ s:bg, s:purple, 'bold' ] ]
+let s:p.tabline.left = [ [ s:bg, s:gray3 ] ]
+let s:p.tabline.tabsel = [ [ s:bg, s:purple, 'bold' ] ]
+let s:p.tabline.middle = [ [ s:gray3, s:gray2 ] ]
+let s:p.tabline.right = copy(s:p.normal.right)
+
+let g:lightline#colorscheme#one#palette = lightline#colorscheme#flatten(s:p)
diff --git a/start/lightline/autoload/lightline/colorscheme/powerline.vim b/start/lightline/autoload/lightline/colorscheme/powerline.vim
new file mode 100644
index 0000000..40e48d4
--- /dev/null
+++ b/start/lightline/autoload/lightline/colorscheme/powerline.vim
@@ -0,0 +1,28 @@
+" =============================================================================
+" Filename: autoload/lightline/colorscheme/powerline.vim
+" Author: itchyny
+" License: MIT License
+" Last Change: 2013/09/07 15:54:41.
+" =============================================================================
+
+let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
+let s:p.normal.left = [ ['darkestgreen', 'brightgreen', 'bold'], ['white', 'gray4'] ]
+let s:p.normal.right = [ ['gray5', 'gray10'], ['gray9', 'gray4'], ['gray8', 'gray2'] ]
+let s:p.inactive.right = [ ['gray1', 'gray5'], ['gray4', 'gray1'], ['gray4', 'gray0'] ]
+let s:p.inactive.left = s:p.inactive.right[1:]
+let s:p.insert.left = [ ['darkestcyan', 'white', 'bold'], ['white', 'darkblue'] ]
+let s:p.insert.right = [ [ 'darkestcyan', 'mediumcyan' ], [ 'mediumcyan', 'darkblue' ], [ 'mediumcyan', 'darkestblue' ] ]
+let s:p.replace.left = [ ['white', 'brightred', 'bold'], ['white', 'gray4'] ]
+let s:p.visual.left = [ ['darkred', 'brightorange', 'bold'], ['white', 'gray4'] ]
+let s:p.normal.middle = [ [ 'gray7', 'gray2' ] ]
+let s:p.insert.middle = [ [ 'mediumcyan', 'darkestblue' ] ]
+let s:p.replace.middle = s:p.normal.middle
+let s:p.replace.right = s:p.normal.right
+let s:p.tabline.left = [ [ 'gray9', 'gray4' ] ]
+let s:p.tabline.tabsel = [ [ 'gray9', 'gray1' ] ]
+let s:p.tabline.middle = [ [ 'gray2', 'gray8' ] ]
+let s:p.tabline.right = [ [ 'gray9', 'gray3' ] ]
+let s:p.normal.error = [ [ 'gray9', 'brightestred' ] ]
+let s:p.normal.warning = [ [ 'gray1', 'yellow' ] ]
+
+let g:lightline#colorscheme#powerline#palette = lightline#colorscheme#fill(s:p)
diff --git a/start/lightline/autoload/lightline/colorscheme/seoul256.vim b/start/lightline/autoload/lightline/colorscheme/seoul256.vim
new file mode 100644
index 0000000..ca2d5a0
--- /dev/null
+++ b/start/lightline/autoload/lightline/colorscheme/seoul256.vim
@@ -0,0 +1,42 @@
+" =============================================================================
+" Filename: autoload/lightline/colorscheme/seoul256.vim
+" Author: atweiden
+" License: MIT License
+" Last Change: 2015/11/02 08:23:27.
+" =============================================================================
+let s:base03 = [ '#151513', 233 ]
+let s:base02 = [ '#30302c ', 236 ]
+let s:base01 = [ '#4e4e43', 239 ]
+let s:base00 = [ '#666656', 242 ]
+let s:base0 = [ '#808070', 244 ]
+let s:base1 = [ '#949484', 246 ]
+let s:base2 = [ '#a8a897', 248 ]
+let s:base3 = [ '#e8e8d3', 253 ]
+let s:yellow = [ '#d8af5f', 3 ]
+let s:orange = [ '#d7875f', 216 ]
+let s:red = [ '#d68787', 131 ]
+let s:magenta = [ '#df5f87', 168 ]
+let s:peach = [ '#d7afaf', 181 ]
+let s:blue = [ '#87afaf', 109 ]
+let s:cyan = [ '#87d7d7', 23 ]
+let s:green = [ '#87af87', 108 ]
+let s:white = [ '#d0d0d0', 252 ]
+
+let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
+let s:p.normal.left = [ [ s:base02, s:blue ], [ s:base3, s:base01 ] ]
+let s:p.normal.right = [ [ s:base02, s:base1 ], [ s:base2, s:base01 ] ]
+let s:p.inactive.right = [ [ s:base02, s:base00 ], [ s:base0, s:base02 ] ]
+let s:p.inactive.left = [ [ s:base0, s:base02 ], [ s:base00, s:base02 ] ]
+let s:p.insert.left = [ [ s:base02, s:green ], [ s:base3, s:base01 ] ]
+let s:p.replace.left = [ [ s:base02, s:magenta ], [ s:base3, s:base01 ] ]
+let s:p.visual.left = [ [ s:base02, s:peach ], [ s:base3, s:base01 ] ]
+let s:p.normal.middle = [ [ s:base0, s:base02 ] ]
+let s:p.inactive.middle = [ [ s:base00, s:base02 ] ]
+let s:p.tabline.left = [ [ s:base3, s:base00 ] ]
+let s:p.tabline.tabsel = [ [ s:base3, s:base02 ] ]
+let s:p.tabline.middle = [ [ s:base01, s:base1 ] ]
+let s:p.tabline.right = copy(s:p.normal.right)
+let s:p.normal.error = [ [ s:red, s:base02 ] ]
+let s:p.normal.warning = [ [ s:yellow, s:base01 ] ]
+
+let g:lightline#colorscheme#seoul256#palette = lightline#colorscheme#flatten(s:p)
diff --git a/start/lightline/autoload/lightline/colorscheme/solarized.vim b/start/lightline/autoload/lightline/colorscheme/solarized.vim
new file mode 100644
index 0000000..d6ee9c6
--- /dev/null
+++ b/start/lightline/autoload/lightline/colorscheme/solarized.vim
@@ -0,0 +1,80 @@
+" =============================================================================
+" Filename: autoload/lightline/colorscheme/solarized.vim
+" Author: itchyny
+" License: MIT License
+" Last Change: 2017/11/25 11:13:46.
+" =============================================================================
+
+let s:cuicolors = {
+ \ 'base03': [ '8', '234', 'DarkGray' ],
+ \ 'base02': [ '0', '235', 'Black' ],
+ \ 'base01': [ '10', '239', 'LightGreen' ],
+ \ 'base00': [ '11', '240', 'LightYellow' ],
+ \ 'base0': [ '12', '244', 'LightBlue' ],
+ \ 'base1': [ '14', '245', 'LightCyan' ],
+ \ 'base2': [ '7', '187', 'LightGray' ],
+ \ 'base3': [ '15', '230', 'White' ],
+ \ 'yellow': [ '3', '136', 'DarkYellow' ],
+ \ 'orange': [ '9', '166', 'LightRed' ],
+ \ 'red': [ '1', '124', 'DarkRed' ],
+ \ 'magenta': [ '5', '125', 'DarkMagenta' ],
+ \ 'violet': [ '13', '61', 'LightMagenta' ],
+ \ 'blue': [ '4', '33', 'DarkBlue' ],
+ \ 'cyan': [ '6', '37', 'DarkCyan' ],
+ \ 'green': [ '2', '64', 'DarkGreen' ],
+ \ }
+
+" The following condition only applies for the console and is the same
+" condition vim-colors-solarized uses to determine which set of colors
+" to use.
+let s:solarized_termcolors = get(g:, 'solarized_termcolors', 256)
+if s:solarized_termcolors != 256 && &t_Co >= 16
+ let s:cuiindex = 0
+elseif s:solarized_termcolors == 256
+ let s:cuiindex = 1
+else
+ let s:cuiindex = 2
+endif
+
+let s:base03 = [ '#002b36', s:cuicolors.base03[s:cuiindex] ]
+let s:base02 = [ '#073642', s:cuicolors.base02[s:cuiindex] ]
+let s:base01 = [ '#586e75', s:cuicolors.base01[s:cuiindex] ]
+let s:base00 = [ '#657b83', s:cuicolors.base00[s:cuiindex] ]
+let s:base0 = [ '#839496', s:cuicolors.base0[s:cuiindex] ]
+let s:base1 = [ '#93a1a1', s:cuicolors.base1[s:cuiindex] ]
+let s:base2 = [ '#eee8d5', s:cuicolors.base2[s:cuiindex] ]
+let s:base3 = [ '#fdf6e3', s:cuicolors.base3[s:cuiindex] ]
+let s:yellow = [ '#b58900', s:cuicolors.yellow[s:cuiindex] ]
+let s:orange = [ '#cb4b16', s:cuicolors.orange[s:cuiindex] ]
+let s:red = [ '#dc322f', s:cuicolors.red[s:cuiindex] ]
+let s:magenta = [ '#d33682', s:cuicolors.magenta[s:cuiindex] ]
+let s:violet = [ '#6c71c4', s:cuicolors.violet[s:cuiindex] ]
+let s:blue = [ '#268bd2', s:cuicolors.blue[s:cuiindex] ]
+let s:cyan = [ '#2aa198', s:cuicolors.cyan[s:cuiindex] ]
+let s:green = [ '#859900', s:cuicolors.green[s:cuiindex] ]
+
+if lightline#colorscheme#background() ==# 'light'
+ let [ s:base03, s:base3 ] = [ s:base3, s:base03 ]
+ let [ s:base02, s:base2 ] = [ s:base2, s:base02 ]
+ let [ s:base01, s:base1 ] = [ s:base1, s:base01 ]
+ let [ s:base00, s:base0 ] = [ s:base0, s:base00 ]
+endif
+
+let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
+let s:p.normal.left = [ [ s:base03, s:blue ], [ s:base03, s:base00 ] ]
+let s:p.normal.right = [ [ s:base03, s:base1 ], [ s:base03, s:base00 ] ]
+let s:p.inactive.right = [ [ s:base03, s:base00 ], [ s:base0, s:base02 ] ]
+let s:p.inactive.left = [ [ s:base0, s:base02 ], [ s:base0, s:base02 ] ]
+let s:p.insert.left = [ [ s:base03, s:green ], [ s:base03, s:base00 ] ]
+let s:p.replace.left = [ [ s:base03, s:red ], [ s:base03, s:base00 ] ]
+let s:p.visual.left = [ [ s:base03, s:magenta ], [ s:base03, s:base00 ] ]
+let s:p.normal.middle = [ [ s:base1, s:base02 ] ]
+let s:p.inactive.middle = [ [ s:base01, s:base02 ] ]
+let s:p.tabline.left = [ [ s:base03, s:base00 ] ]
+let s:p.tabline.tabsel = [ [ s:base03, s:base1 ] ]
+let s:p.tabline.middle = [ [ s:base0, s:base02 ] ]
+let s:p.tabline.right = copy(s:p.normal.right)
+let s:p.normal.error = [ [ s:base03, s:red ] ]
+let s:p.normal.warning = [ [ s:base03, s:yellow ] ]
+
+let g:lightline#colorscheme#solarized#palette = lightline#colorscheme#flatten(s:p)
diff --git a/start/lightline/autoload/lightline/colorscheme/srcery_drk.vim b/start/lightline/autoload/lightline/colorscheme/srcery_drk.vim
new file mode 100644
index 0000000..f1c7e1d
--- /dev/null
+++ b/start/lightline/autoload/lightline/colorscheme/srcery_drk.vim
@@ -0,0 +1,44 @@
+" =============================================================================
+" Filename: autoload/lightline/colorscheme/srcery_drk.vim
+" Author: Christopher Vittal
+" License: MIT License
+" Last Change: 2018/05/19
+" =============================================================================
+let s:base03 = [ '#151513', 233 ]
+let s:base02 = [ '#30302c ', 236 ]
+let s:base01 = [ '#4e4e43', 239 ]
+let s:base00 = [ '#666656', 242 ]
+let s:base0 = [ '#808070', 244 ]
+let s:base1 = [ '#949484', 246 ]
+let s:base2 = [ '#a8a897', 248 ]
+let s:base3 = [ '#e8e8d3', 253 ]
+let s:yellow = [ '#fbb829', 3 ]
+let s:orange = [ '#d75f00', 166 ]
+let s:red = [ '#ff3128', 1 ]
+let s:magenta = [ '#e02c6d', 5 ]
+let s:bright_magenta = [ '#e35682', 13 ]
+let s:blue = [ '#5573a3', 4 ]
+let s:bright_blue = [ '#8eb2f7', 12 ]
+let s:cyan = [ '#0aaeb3', 6 ]
+let s:green = [ '#519f50', 2 ]
+let s:bright_green = [ '#98bc37', 10 ]
+let s:white = [ '#fce8c3', 15 ]
+
+let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
+let s:p.normal.left = [ [ s:base02, s:bright_blue, 'bold' ], [ s:base3, s:base01 ] ]
+let s:p.normal.right = [ [ s:base02, s:base1 ], [ s:base2, s:base01 ] ]
+let s:p.inactive.right = [ [ s:base02, s:base00 ], [ s:base0, s:base02 ] ]
+let s:p.inactive.left = [ [ s:base0, s:base02 ], [ s:base00, s:base02 ] ]
+let s:p.insert.left = [ [ s:base02, s:bright_green, 'bold' ], [ s:base3, s:base01 ] ]
+let s:p.replace.left = [ [ s:base3, s:red, 'bold' ], [ s:base3, s:base01 ] ]
+let s:p.visual.left = [ [ s:base3, s:bright_magenta, 'bold' ], [ s:base3, s:base01 ] ]
+let s:p.normal.middle = [ [ s:base0, s:base02 ] ]
+let s:p.inactive.middle = [ [ s:base00, s:base02 ] ]
+let s:p.tabline.left = [ [ s:base3, s:base00, 'bold'] ]
+let s:p.tabline.tabsel = [ [ s:base3, s:base02 ] ]
+let s:p.tabline.middle = [ [ s:base01, s:base1 ] ]
+let s:p.tabline.right = copy(s:p.normal.right)
+let s:p.normal.error = [ [ s:red, s:base02 ] ]
+let s:p.normal.warning = [ [ s:yellow, s:base01 ] ]
+
+let g:lightline#colorscheme#srcery_drk#palette = lightline#colorscheme#flatten(s:p)
diff --git a/start/lightline/autoload/lightline/colorscheme/wombat.vim b/start/lightline/autoload/lightline/colorscheme/wombat.vim
new file mode 100644
index 0000000..9619247
--- /dev/null
+++ b/start/lightline/autoload/lightline/colorscheme/wombat.vim
@@ -0,0 +1,40 @@
+" =============================================================================
+" Filename: autoload/lightline/colorscheme/wombat.vim
+" Author: itchyny
+" License: MIT License
+" Last Change: 2015/11/30 08:37:43.
+" =============================================================================
+let s:base03 = [ '#242424', 235 ]
+let s:base023 = [ '#353535 ', 236 ]
+let s:base02 = [ '#444444 ', 238 ]
+let s:base01 = [ '#585858', 240 ]
+let s:base00 = [ '#666666', 242 ]
+let s:base0 = [ '#808080', 244 ]
+let s:base1 = [ '#969696', 247 ]
+let s:base2 = [ '#a8a8a8', 248 ]
+let s:base3 = [ '#d0d0d0', 252 ]
+let s:yellow = [ '#cae682', 180 ]
+let s:orange = [ '#e5786d', 173 ]
+let s:red = [ '#e5786d', 203 ]
+let s:magenta = [ '#f2c68a', 216 ]
+let s:blue = [ '#8ac6f2', 117 ]
+let s:cyan = s:blue
+let s:green = [ '#95e454', 119 ]
+let s:p = {'normal': {}, 'inactive': {}, 'insert': {}, 'replace': {}, 'visual': {}, 'tabline': {}}
+let s:p.normal.left = [ [ s:base02, s:blue ], [ s:base3, s:base01 ] ]
+let s:p.normal.right = [ [ s:base02, s:base0 ], [ s:base1, s:base01 ] ]
+let s:p.inactive.right = [ [ s:base023, s:base01 ], [ s:base00, s:base02 ] ]
+let s:p.inactive.left = [ [ s:base1, s:base02 ], [ s:base00, s:base023 ] ]
+let s:p.insert.left = [ [ s:base02, s:green ], [ s:base3, s:base01 ] ]
+let s:p.replace.left = [ [ s:base023, s:red ], [ s:base3, s:base01 ] ]
+let s:p.visual.left = [ [ s:base02, s:magenta ], [ s:base3, s:base01 ] ]
+let s:p.normal.middle = [ [ s:base2, s:base02 ] ]
+let s:p.inactive.middle = [ [ s:base1, s:base023 ] ]
+let s:p.tabline.left = [ [ s:base3, s:base00 ] ]
+let s:p.tabline.tabsel = [ [ s:base3, s:base03 ] ]
+let s:p.tabline.middle = [ [ s:base2, s:base02 ] ]
+let s:p.tabline.right = [ [ s:base2, s:base00 ] ]
+let s:p.normal.error = [ [ s:base03, s:red ] ]
+let s:p.normal.warning = [ [ s:base023, s:yellow ] ]
+
+let g:lightline#colorscheme#wombat#palette = lightline#colorscheme#flatten(s:p)
diff --git a/start/lightline/autoload/lightline/colortable.vim b/start/lightline/autoload/lightline/colortable.vim
new file mode 100644
index 0000000..82617b2
--- /dev/null
+++ b/start/lightline/autoload/lightline/colortable.vim
@@ -0,0 +1,42 @@
+" =============================================================================
+" Filename: autoload/lightline/colortable.vim
+" Author: itchyny
+" License: MIT License
+" Last Change: 2015/03/29 06:21:39.
+" =============================================================================
+
+let s:save_cpo = &cpo
+set cpo&vim
+
+function! s:load() abort
+ let rgbfile = $VIMRUNTIME . '/rgb.txt'
+ let table = {}
+ if filereadable(rgbfile)
+ for _ in map(filter(readfile(rgbfile), 'v:val !~# "^!"'), 'matchlist(v:val, "^\\s*\\(\\d\\+\\)\\s\\+\\(\\d\\+\\)\\s\\+\\(\\d\\+\\)\\s\\+\\(.*\\)")[1:4]')
+ let table[tolower(_[3])] = _[0:2]
+ endfor
+ endif
+ return table
+endfunction
+
+let s:table = s:load()
+
+function! lightline#colortable#name_to_rgb(name) abort
+ let name = tolower(a:name)
+ return has_key(s:table, name) ? s:table[name] : []
+endfunction
+
+function! lightline#colortable#gui2cui(rgb, fallback) abort
+ let rgb = map(matchlist(a:rgb, '#\(..\)\(..\)\(..\)')[1:3], '0 + ("0x".v:val)')
+ if len(rgb) == 0
+ let rgb = lightline#colortable#name_to_rgb(a:rgb)
+ if len(rgb) == 0
+ return a:fallback % 128
+ endif
+ endif
+ let rgb = [rgb[0] > 127 ? 4 : 0, rgb[1] > 127 ? 2 : 0, rgb[2] > 127 ? 1 : 0]
+ return rgb[0] + rgb[1] + rgb[2]
+endfunction
+
+let &cpo = s:save_cpo
+unlet s:save_cpo
diff --git a/start/lightline/autoload/lightline/tab.vim b/start/lightline/autoload/lightline/tab.vim
new file mode 100644
index 0000000..f2accc1
--- /dev/null
+++ b/start/lightline/autoload/lightline/tab.vim
@@ -0,0 +1,33 @@
+" =============================================================================
+" Filename: autoload/lightline/tab.vim
+" Author: itchyny
+" License: MIT License
+" Last Change: 2016/05/07 22:31:02.
+" =============================================================================
+
+let s:save_cpo = &cpo
+set cpo&vim
+
+function! lightline#tab#filename(n) abort
+ let buflist = tabpagebuflist(a:n)
+ let winnr = tabpagewinnr(a:n)
+ let _ = expand('#'.buflist[winnr - 1].':t')
+ return _ !=# '' ? _ : '[No Name]'
+endfunction
+
+function! lightline#tab#modified(n) abort
+ let winnr = tabpagewinnr(a:n)
+ return gettabwinvar(a:n, winnr, '&modified') ? '+' : gettabwinvar(a:n, winnr, '&modifiable') ? '' : '-'
+endfunction
+
+function! lightline#tab#readonly(n) abort
+ let winnr = tabpagewinnr(a:n)
+ return gettabwinvar(a:n, winnr, '&readonly') ? 'RO' : ''
+endfunction
+
+function! lightline#tab#tabnum(n) abort
+ return a:n
+endfunction
+
+let &cpo = s:save_cpo
+unlet s:save_cpo
diff --git a/start/lightline/doc/lightline.txt b/start/lightline/doc/lightline.txt
new file mode 100644
index 0000000..7c2a886
--- /dev/null
+++ b/start/lightline/doc/lightline.txt
@@ -0,0 +1,1325 @@
+*lightline.txt* A light and configurable statusline/tabline for Vim
+
+Version: 0.1
+Author: itchyny (https://github.com/itchyny)
+License: MIT License
+Repository: https://github.com/itchyny/lightline.vim
+Last Change: 2018/04/28 00:08:18.
+
+CONTENTS *lightline-contents*
+
+Introduction |lightline-introduction|
+Spirit |lightline-spirit|
+Option |lightline-option|
+Font |lightline-font|
+Function |lightline-function|
+Component Expansion |lightline-component-expansion|
+Colorscheme |lightline-colorscheme|
+Examples |lightline-examples|
+Nice Examples |lightline-nice-examples|
+Powerful Example |lightline-powerful-example|
+Troubleshooting |lightline-troubleshooting|
+
+==============================================================================
+INTRODUCTION *lightline-introduction*
+
+The *lightline* plugin is a light and configurable statusline/tabline for Vim.
+
+------------------------------------------------------------------------------
+SPIRIT *lightline-spirit*
+
+ Minimalism
+ The core script is very small to achieve enough functions as a
+ statusline plugin.
+
+ Configurability
+ You can create your own component and easily add to the statusline
+ and the tabline.
+
+ Orthogonality
+ The plugin does not rely on the implementation of other plugins.
+ Such plugin crossing settings should be configured by users.
+
+ You find this plugin does not integrate with other plugins by default.
+ This plugin does not provide branch information, which is a basic
+ component in existing statusline plugins. It is a design of
+ lightline.vim that such plugin crossing configuration should be
+ written by users. Once a plugin starts to integrate with some famous
+ plugins, it should be kept updated to follow the changes of the
+ plugins and should accept integration requests with new plugins.
+ Instead, lightline.vim is designed very carefully so that users can
+ easily integrate with other plugins. Good APIs keep a plugin clean.
+
+------------------------------------------------------------------------------
+OPTIONS *lightline-option*
+
+ g:lightline *g:lightline*
+ All the configurations are stored in this global variable.
+
+ g:lightline.active *g:lightline.active*
+ g:lightline.inactive *g:lightline.inactive*
+ g:lightline.tabline *g:lightline.tabline*
+ Dictionaries to store the statusline/tabline components.
+ Note that right groups of components are stored from right to
+ left.
+ The default values are:
+>
+ let g:lightline.active = {
+ \ 'left': [ [ 'mode', 'paste' ],
+ \ [ 'readonly', 'filename', 'modified' ] ],
+ \ 'right': [ [ 'lineinfo' ],
+ \ [ 'percent' ],
+ \ [ 'fileformat', 'fileencoding', 'filetype' ] ] }
+ let g:lightline.inactive = {
+ \ 'left': [ [ 'filename' ] ],
+ \ 'right': [ [ 'lineinfo' ],
+ \ [ 'percent' ] ] }
+ let g:lightline.tabline = {
+ \ 'left': [ [ 'tabs' ] ],
+ \ 'right': [ [ 'close' ] ] }
+<
+ g:lightline.tab *g:lightline.tab*
+ A dictionary to store the tab components in each tabs.
+ The default values are:
+>
+ let g:lightline.tab = {
+ \ 'active': [ 'tabnum', 'filename', 'modified' ],
+ \ 'inactive': [ 'tabnum', 'filename', 'modified' ] }
+<
+ g:lightline.component *g:lightline.component*
+ A dictionary for statusline/tabline components.
+ The default value is:
+>
+ let g:lightline.component = {
+ \ 'mode': '%{lightline#mode()}',
+ \ 'absolutepath': '%F',
+ \ 'relativepath': '%f',
+ \ 'filename': '%t',
+ \ 'modified': '%M',
+ \ 'bufnum': '%n',
+ \ 'paste': '%{&paste?"PASTE":""}',
+ \ 'readonly': '%R',
+ \ 'charvalue': '%b',
+ \ 'charvaluehex': '%B',
+ \ 'fileencoding': '%{&fenc!=#""?&fenc:&enc}',
+ \ 'fileformat': '%{&ff}',
+ \ 'filetype': '%{&ft!=#""?&ft:"no ft"}',
+ \ 'percent': '%3p%%',
+ \ 'percentwin': '%P',
+ \ 'spell': '%{&spell?&spelllang:""}',
+ \ 'lineinfo': '%3l:%-2v',
+ \ 'line': '%l',
+ \ 'column': '%c',
+ \ 'close': '%999X X ',
+ \ 'winnr': '%{winnr()}' }
+<
+ g:lightline.component_visible_condition
+ *g:lightline.component_visible_condition*
+ A dictionary to store the visible condition of the components.
+ Note that this configuration is used to control the visibility
+ of the subseparators, not to control the visibility of the
+ components themselves. Each expression should correspond to
+ the condition on which each component is not empty.
+ The default value is:
+>
+ let g:lightline.component_visible_condition = {
+ \ 'modified': '&modified||!&modifiable',
+ \ 'readonly': '&readonly',
+ \ 'paste': '&paste',
+ \ 'spell': '&spell' }
+<
+ g:lightline.component_function *g:lightline.component_function*
+ A dictionary to store the function components.
+ This is useful to write a complex component configuration and
+ to integrate with other plugins. If a component set in both
+ component and component_function, the configuration of
+ component_function has priority.
+
+ The default value is:
+>
+ let g:lightline.component_function = {}
+<
+ For example, if you want to display the name of the git branch,
+ install |vim-fugitive| plugin and then configure as:
+>
+ let g:lightline = {
+ \ 'active': {
+ \ 'left': [ [ 'mode', 'paste' ],
+ \ [ 'gitbranch', 'readonly', 'filename', 'modified' ] ]
+ \ },
+ \ 'component_function': {
+ \ 'gitbranch': 'fugitive#head'
+ \ },
+ \ }
+<
+ g:lightline.component_function_visible_condition
+ *g:lightline.component_function_visible_condition*
+ A dictionary to store the visible conditions of the function
+ components. Each expression should correspond to the condition
+ each component is not empty. This configuration is used to
+ control the visibility of the sub-separators. You can use this
+ configuration to reduce the number of function calls for
+ performance improvement by setting the value 1 (to tell lightline
+ that the component is always visible).
+ The default value is:
+>
+ let g:lightline.component_function_visible_condition = {}
+<
+ g:lightline.component_expand *g:lightline.component_expand*
+ A dictionary to store expanding components. You can create
+ warning and critical components. The values should be the name
+ of functions should return either one of:
+ + a string
+ + an array of three elements:
+ [[ left ], [ middle ], [ right ]]
+ The component in this dictionary has priority over
+ |g:lightline.component| and |g:lightline.component_function|.
+ Note that the return string is appended to the statusline
+ string without any conversion. So you should replace all the
+ % signs with %%. Otherwise, lightline will be disabled in case
+ the text has a % sign.
+ (example: return substitute(text, '%', '%%', 'g')).
+ See |lightline-component-expansion| for more detail.
+>
+ let g:lightline.component_expand = {
+ \ 'tabs': 'lightline#tabs' }
+<
+ g:lightline.component_type *g:lightline.component_type*
+ A dictionary to specify the types for components in
+ |g:lightline.component_expand|. The types are used to specify
+ the color. Specifically, the type raw is used to specify a
+ component which should not be wrapped by item group: %(...%).
+ If you want to specify the type of a raw component, please use
+ |g:lightline.component_raw|.
+ The default value is: >
+
+ let g:lightline.component_type = {
+ \ 'tabs': 'tabsel',
+ \ 'close': 'raw' }
+<
+ g:lightline.component_raw *g:lightline.component_raw*
+ A dictionary to specify the raw type components. When you
+ register a component to this dictionary (like >
+ let g:lightline.component_raw = { 'example': 1 }
+< ), the example component is not wrapped by item group: %(...%).
+ The default value is: >
+
+ let g:lightline.component_raw = {}
+<
+ g:lightline.tab_component *g:lightline.tab_component*
+ A dictionary for components in one tab.
+ The default value is: >
+
+ let g:lightline.tab_component = {}
+<
+ g:lightline.tab_component_function *g:lightline.tab_component_function*
+ Another dictionary for components in one tab.
+ A function specified as a tab component takes one argument:
+ the tab [count].
+ The default value is:
+>
+ let g:lightline.tab_component_function = {
+ \ 'filename': 'lightline#tab#filename',
+ \ 'modified': 'lightline#tab#modified',
+ \ 'readonly': 'lightline#tab#readonly',
+ \ 'tabnum': 'lightline#tab#tabnum' }
+<
+ g:lightline.colorscheme *g:lightline.colorscheme*
+ The colorscheme for lightline.vim.
+ Currently, wombat, solarized, powerline, jellybeans, Tomorrow,
+ Tomorrow_Night, Tomorrow_Night_Blue, Tomorrow_Night_Eighties,
+ PaperColor, seoul256, landscape, one, darcula, molokai, materia,
+ material, OldHope, nord, 16color and deus are available.
+ The default value is:
+>
+ let g:lightline.colorscheme = 'default'
+<
+ Note that the default colorscheme is exactly the same as the
+ powerline theme.
+
+ g:lightline.mode_map *g:lightline.mode_map*
+ A dictionary of names for the modes. The keys are the return
+ values of |mode()|.
+ The default value is:
+>
+ let g:lightline.mode_map = {
+ \ 'n' : 'NORMAL',
+ \ 'i' : 'INSERT',
+ \ 'R' : 'REPLACE',
+ \ 'v' : 'VISUAL',
+ \ 'V' : 'V-LINE',
+ \ "\<C-v>": 'V-BLOCK',
+ \ 'c' : 'COMMAND',
+ \ 's' : 'SELECT',
+ \ 'S' : 'S-LINE',
+ \ "\<C-s>": 'S-BLOCK',
+ \ 't': 'TERMINAL',
+ \ }
+<
+ When you search a word, you get into the command mode. But if
+ you want to keep the mode indicator as 'NORMAL', add >
+ let g:lightline = { 'mode_map': { 'c': 'NORMAL' } }
+< to your .vimrc.
+
+ g:lightline.separator *g:lightline.separator*
+ g:lightline.subseparator *g:lightline.subseparator*
+ Dictionaries to store separators.
+ The default value is
+>
+ let g:lightline.separator = { 'left': '', 'right': '' }
+ let g:lightline.subseparator = { 'left': '|', 'right': '|' }
+<
+ g:lightline.tabline_separator *g:lightline.tabline_separator*
+ g:lightline.tabline_subseparator *g:lightline.tabline_subseparator*
+ Dictionaries to store separators for the tabline.
+ The default value is
+>
+ let g:lightline.tabline_separator = g:lightline.separator
+ let g:lightline.tabline_subseparator = g:lightline.subseparator
+<
+ g:lightline.enable *g:lightline.enable*
+ A dictionary to specify which feature is turned on.
+ The default value is
+>
+ let g:lightline.enable = {
+ \ 'statusline': 1,
+ \ 'tabline': 1
+ \ }
+<
+==============================================================================
+FONT *lightline-font*
+You can use the patched font you used for |vim-powerline| and |powerline|.
+
+The patched fonts for |powerline| are available at
+https://github.com/Lokaltog/powerline-fonts
+
+A tutorial to create a patched font for |vim-powerline| is available at
+https://github.com/Lokaltog/vim-powerline/tree/develop/fontpatcher
+
+If you have installed the patched font for |powerline|, following settings look
+nice.
+>
+ let g:lightline = {
+ \ 'component': {
+ \ 'lineinfo': ' %3l:%-2v',
+ \ },
+ \ 'component_function': {
+ \ 'readonly': 'LightlineReadonly',
+ \ 'fugitive': 'LightlineFugitive'
+ \ },
+ \ 'separator': { 'left': '', 'right': '' },
+ \ 'subseparator': { 'left': '', 'right': '' }
+ \ }
+ function! LightlineReadonly()
+ return &readonly ? '' : ''
+ endfunction
+ function! LightlineFugitive()
+ if exists('*fugitive#head')
+ let branch = fugitive#head()
+ return branch !=# '' ? ''.branch : ''
+ endif
+ return ''
+ endfunction
+<
+If you have installed the patched font for |vim-powerline|, following settings
+look nice.
+>
+ let g:lightline = {
+ \ 'component': {
+ \ 'lineinfo': '⭡ %3l:%-2v',
+ \ },
+ \ 'component_function': {
+ \ 'readonly': 'LightlineReadonly',
+ \ 'fugitive': 'LightlineFugitive'
+ \ },
+ \ 'separator': { 'left': '⮀', 'right': '⮂' },
+ \ 'subseparator': { 'left': '⮁', 'right': '⮃' }
+ \ }
+ function! LightlineReadonly()
+ return &readonly ? '⭤' : ''
+ endfunction
+ function! LightlineFugitive()
+ if exists('*fugitive#head')
+ let branch = fugitive#head()
+ return branch !=# '' ? '⭠ '.branch : ''
+ endif
+ return ''
+ endfunction
+<
+If the statusline does not correctly show the special characters, use the
+unicode numbers. For |powerline| font users:
+>
+ \ 'separator': { 'left': "\ue0b0", 'right': "\ue0b2" },
+ \ 'subseparator': { 'left': "\ue0b1", 'right': "\ue0b3" }
+<
+For |vim-powerline| font users:
+>
+ \ 'separator': { 'left': "\u2b80", 'right': "\u2b82" },
+ \ 'subseparator': { 'left': "\u2b81", 'right': "\u2b83" }
+<
+See |lightline-problem-9| for more detail.
+==============================================================================
+FUNCTION *lightline-function*
+Exposed functions for lightline.vim.
+
+ lightline#mode() *lightline#mode()*
+ Returns the mode of the Vim using |g:lightline.mode_map|.
+
+ lightline#init() *lightline#init()*
+ Initializes the internal state from |g:lightline|.
+
+ lightline#colorscheme() *lightline#colorscheme()*
+ Initializes the colorscheme and the highlight groups.
+
+ lightline#update() *lightline#update()*
+ Updates all the statuslines of existing windows.
+
+ lightline#update_once() *lightline#update_once()*
+ Updates the statuslines only once.
+
+ lightline#enable() *lightline#enable()*
+ Enables |lightline|.
+
+ lightline#disable() *lightline#disable()*
+ Disables |lightline|.
+
+ lightline#toggle() *lightline#toggle()*
+ Toggles |lightline|.
+
+ lightline#link([mode]) *lightline#link()*
+ Creates links of the highlight groups for the active window.
+ This function accepts an optional argument. It should be one
+ of the return value of |mode()|.
+
+ lightline#highlight() *lightline#highlight()*
+ Set the highlight groups.
+
+ lightline#statusline({inactive}) *lightline#statusline()*
+ Returns |statusline| strings. If the argument is 0, it returns
+ the statusline for active window, and the statusline for
+ inactive window otherwise.
+
+ lightline#tabline() *lightline#tabline()*
+ Returns the tabline string.
+
+ lightline#concatenate({list}, {num}) *lightline#concatenate()*
+ A string concatenation function. Concatenating all the strings
+ in {list} using the sub-separator of lightline. If {num} is 0,
+ then the left sub-separator is used. Otherwise, the right
+ sub-separator is used.
+
+ lightline#palette() *lightline#palette()*
+ Returns the palette data.
+
+==============================================================================
+COMPONENT EXPANSION *lightline-component-expansion*
+You can create components, which have specific colors. This section gives an
+example using |syntastic|.
+
+If you want to add the |syntastic| flag to the statusline, an easy example is:
+>
+ " Example A
+ let g:lightline = {
+ \ 'active': {
+ \ 'right': [ [ 'lineinfo', 'syntastic' ],
+ \ [ 'percent' ],
+ \ [ 'fileformat', 'fileencoding', 'filetype' ] ]
+ \ },
+ \ 'component_function': {
+ \ 'syntastic': 'SyntasticStatuslineFlag',
+ \ }
+ \ }
+ let g:syntastic_mode_map = { 'mode': 'passive',
+ \ 'active_filetypes': ['c', 'cpp'] }
+<
+However, the color of the syntastic component is the same as the lineinfo
+component.
+
+In order to change the syntastic component more outstanding, you have to use
+|g:lightline.component_expand|. See the following example:
+>
+ " Example B
+ let g:lightline = {
+ \ 'active': {
+ \ 'right': [ [ 'syntastic', 'lineinfo' ],
+ \ [ 'percent' ],
+ \ [ 'fileformat', 'fileencoding', 'filetype' ] ]
+ \ },
+ \ 'component_expand': {
+ \ 'syntastic': 'SyntasticStatuslineFlag',
+ \ },
+ \ 'component_type': {
+ \ 'syntastic': 'error',
+ \ }
+ \ }
+ " Syntastic can call a post-check hook, let's update lightline there
+ " For more information: :help syntastic-loclist-callback
+ function! SyntasticCheckHook(errors)
+ call lightline#update()
+ endfunction
+<
+In order to understand the above codes, you firstly should know how the
+colorschemes work in lightline.vim. Open the following file.
+ autoload/lightline/colorscheme/powerline.vim
+The colorscheme is created by one dictionary: s:p (abbreviation for palette).
+See the value of s:p.normal.right.
+>
+ let s:p.normal.right = [ ['gray5', 'gray10'],
+ \ ['gray9', 'gray4'],
+ \ ['gray8', 'gray2'] ]
+<
+This array corresponds to the structure of g:lightline.active.right. Recall
+the example A.
+>
+ " Example A
+ let g:lightline.active.right = [ [ 'lineinfo', 'syntastic' ],
+ \ [ 'percent' ],
+ \ [ 'fileformat', 'fileencoding', 'filetype' ] ]
+<
+The colors are ([fgcolor, bgcolor):
+>
+ (0) [ 'lineinfo', 'syntastic' ] --- s:p.normal.right[0] = ['gray5', 'gray10']
+ (1) [ 'percent' ] --- s:p.normal.right[1] = ['gray9', 'gray4']
+ (2) [ 'fileformat', 'fileencoding', 'filetype' ] --- s:p.normal.right[2] = ['gray8', 'gray2']
+<
+Recall the example B.
+>
+ " Example B
+ let g:lightline.active.right = [ [ 'syntastic', 'lineinfo' ],
+ \ [ 'percent' ],
+ \ [ 'fileformat', 'fileencoding', 'filetype' ] ]
+<
+If a component is specified in |g:lightline.component_expand|, lightline.vim
+expands the components before setting to statusline/tabline. In this example,
+the syntastic component is expanded using the |SyntasticStatuslineFlag| function.
+This function returns a {string}. Let us call it `syntastic_flag`.
+>
+ let syntastic_flag = SyntasticStatuslineFlag()
+<
+The syntastic component is now expanded, so it go up to one component group.
+The type of the syntastic component is error, and the palette has error
+colors, the result is:
+>
+ " Expanded result of Example B
+ (error) [ syntastic_flag ] --- s:p.normal.error[0] = ['gray9', 'brightestred']
+ (0) [ 'lineinfo' ] --- s:p.normal.right[0] = ['gray5', 'gray10']
+ (1) [ 'percent' ] --- s:p.normal.right[1] = ['gray9', 'gray4']
+ (2) [ 'fileformat', 'fileencoding', 'filetype' ] --- s:p.normal.right[2] = ['gray8', 'gray2']
+<
+Thus the syntastic component has the red color.
+
+
+Another example for |g:lightline.component_expand| is the tabs component.
+Actually, the expand feature is created for the tabs component.
+>
+ let g:lightline.tabline.left = [ [ 'tabs' ] ]
+ let g:lightline.component_expand = {
+ \ 'tabs': 'lightline#tabs' }
+<
+Create three tabs and select the middle tab. Then execute
+>
+ echo lightline#tabs()
+ " [['%1T%{lightline#onetab(1,0)}'],
+ " ['%2T%{lightline#onetab(2,1)}'],
+ " ['%3T%{lightline#onetab(3,0)}%T']]
+<
+It returns an array of three elements. The expanded result is:
+>
+ " Expanded result of tabline
+ (0) ['%1T%{lightline#onetab(1,0)}'] --- s:p.tabline.left[0] = ['gray9', 'gray4']
+ (tabsel) ['%2T%{lightline#onetab(2,1)}'] --- s:p.tabline.tabsel[0] = ['gray9', 'gray1']
+ (0) ['%3T%{lightline#onetab(3,0)}%T'] --- s:p.tabline.left[0] = ['gray9', 'gray4']
+<
+If the tabline components are
+>
+ let g:lightline.tabline.left = [ [ 'A', 'B', 'tabs', 'C', 'D' ] ]
+<
+then the expanded result is:
+>
+ (0) ['A', 'B', '%1T%{lightline#onetab(1,0)}'] --- s:p.tabline.left[0]
+ (tabsel) ['%2T%{lightline#onetab(2,1)}'] --- s:p.tabline.tabsel[0]
+ (0) ['%3T%{lightline#onetab(3,0)}%T', 'C', 'D'] --- s:p.tabline.left[0]
+<
+In summary, when a function in |g:lightline.component_expand| returns an
+array of three elements, the first element and the last element remains as a
+part of existing component group. And the middle element goes up to new
+component group.
+------------------------------------------------------------------------------
+COLORSCHEME *lightline-colorscheme*
+You can configure the colorscheme of lightline. For example,
+>
+ let g:lightline = {
+ \ 'colorscheme': 'wombat',
+ \ }
+<
+The colorscheme files are found in the directory
+
+ lightline.vim/autoload/lightline/colorscheme/
+
+In each file, one global variable is defined. For example, in the landscape.vim
+file, you see
+>
+ let g:lightline#colorscheme#landscape#palette = s:p
+<
+In the file, the colors for the landscape colorscheme are defined. For example,
+>
+ let s:p.normal.left = [ ['#0000ff', '#ffffff', 21, 231, 'bold' ], [ '#ffffff', '#0000ff', 231, 21 ] ]
+<
+defines the colors for the components on the left hand side, in normal mode.
+>
+ let s:p.tabline.tabsel = [ [ '#dadada', '#121212', 253, 233 ] ]
+<
+defines the colors for the selected tab in tabline. In general, each palette
+follows the following style:
+>
+ let s:p.{mode}.{where} = [ [ {guifg}, {guibg}, {ctermfg}, {ctermbg} ], ... ]
+<
+
+
+Now, you can create your own colorscheme for lightline. Create a
+yourcolorscheme.vim at
+
+ {one of the paths in &rtp}/autoload/lightline/colorscheme/yourcolorscheme.vim
+
+The following code gives the minimal palette definition for lightline.
+>
+ let s:p = {'normal': {}}
+ let s:p.normal.left = [ [ ... ] ]
+ let s:p.normal.right = [ [ ... ] ]
+ let s:p.normal.middle = [ [ ... ] ]
+ let g:lightline#colorscheme#yourcolorscheme#palette = s:p
+<
+And if you add the colorscheme configuration to your .vimrc(_vimrc),
+>
+ let g:lightline = {
+ \ 'colorscheme': 'yourcolorscheme',
+ \ }
+<
+you find it possible to change the lightline colors as you wish.
+
+Moreover, if you want to change the colors based on the mode of vim, write
+something like this:
+>
+ let s:p.insert.left = [ [ ... ] ]
+ let s:p.insert.right = [ [ ... ] ]
+ let s:p.replace.left = [ [ ... ] ]
+ let s:p.replace.right = [ [ ... ] ]
+ ...
+ ...
+<
+For expanded components, you are recommended to define the following two
+colors.
+>
+ let s:p.normal.error = [ [ ... ] ]
+ let s:p.normal.warning = [ [ ... ] ]
+<
+For the complete list of components the color of which you should define in
+your colorscheme, see the colorscheme files in lightline.
+
+It is sometimes painful to write all the colors for both gui and cterm.
+Actually, lightline has some useful functions for writing colorschemes. For
+example, see
+ lightline.vim/autoload/lightline/colorscheme/Tomorrow_Night.vim
+this colorscheme is defined using only gui color numbers. And convert to the
+normal colorscheme form using:
+>
+ let g:lightline#colorscheme#Tomorrow_Night#palette = lightline#colorscheme#fill(s:p)
+<
+This function fills the cterm colors for a palette which has only gui colors, or
+vice versa. However, note that using the convenient function sources an
+additional Vim script file (autoload/lightline/colorscheme.vim), which causes
+a little slow down. If you want to avoid this situation, write all the colors
+as done in autoload/lightline/colorscheme/landscape.vim; firstly create the
+colorscheme using the fill function, and see the result, in a sense, the
+compiled version of your colorscheme.
+>
+ echo g:lightline#colorscheme#yourcolorscheme#palette
+<
+Then copy and paste the result to the colorscheme file.
+
+If you want to contribute a new colorscheme that is not currently available
+please follow the following rules:
+ *) All hex codes should be lowercase only
+ *) Use 2 space soft tabs
+ *) If your colorscheme has both light and dark variants, use a single file
+ *) Normal Mode should default to Cyan
+ *) Insert Mode should default to Green
+ *) Visual Mode should default to Yellow
+ *) Replace Mode should default to Red
+
+==============================================================================
+EXAMPLES *lightline-examples*
+You can configure the appearance of statusline.
+Write the following examples in you .vimrc(_vimrc).
+
+In order to change the colorscheme:
+>
+ let g:lightline = {
+ \ 'colorscheme': 'wombat',
+ \ }
+<
+
+In order to define your own component:
+>
+ let g:lightline = {
+ \ 'active': {
+ \ 'left': [ [ 'mode', 'paste' ], [ 'myfilename' ] ]
+ \ },
+ \ 'component_function': {
+ \ 'myfilename': 'LightlineFilename',
+ \ 'myreadonly': 'LightlineReadonly',
+ \ 'mymodified': 'LightlineModified',
+ \ }
+ \ }
+ function! LightlineFilename()
+ return ('' != LightlineReadonly() ? LightlineReadonly() . ' ' : '') .
+ \ (&ft == 'vimfiler' ? vimfiler#get_status_string() :
+ \ &ft == 'unite' ? unite#get_status_string() :
+ \ '' != expand('%:t') ? expand('%:t') : '[No Name]') .
+ \ ('' != LightlineModified() ? ' ' . LightlineModified() : '')
+ endfunction
+ function! LightlineReadonly()
+ return &ft !~? 'help' && &readonly ? 'RO' : ''
+ endfunction
+ function! LightlineModified()
+ return &modifiable && &modified ? '+' : ''
+ endfunction
+<
+
+Separators settings:
+>
+ let g:lightline = {
+ \ 'separator': { 'left': '', 'right': '' },
+ \ 'subseparator': { 'left': '|', 'right': '|' }
+ \ }
+<
+
+For |powerline| font users:
+>
+ let g:lightline = {
+ \ 'separator': { 'left': '', 'right': '' },
+ \ 'subseparator': { 'left': '', 'right': '' }
+ \ }
+<
+
+For |vim-powerline| font users:
+>
+ let g:lightline = {
+ \ 'separator': { 'left': '⮀', 'right': '⮂' },
+ \ 'subseparator': { 'left': '⮁', 'right': '⮃' }
+ \ }
+<
+
+------------------------------------------------------------------------------
+NICE EXAMPLES *lightline-nice-examples*
+
+A nice example for non-patched font users.
+>
+ let g:lightline = {
+ \ 'colorscheme': 'wombat',
+ \ 'active': {
+ \ 'left': [ [ 'mode', 'paste' ], [ 'fugitive', 'filename' ] ]
+ \ },
+ \ 'component_function': {
+ \ 'fugitive': 'LightlineFugitive',
+ \ 'filename': 'LightlineFilename'
+ \ }
+ \ }
+ function! LightlineModified()
+ return &ft =~ 'help\|vimfiler' ? '' : &modified ? '+' : &modifiable ? '' : '-'
+ endfunction
+ function! LightlineReadonly()
+ return &ft !~? 'help\|vimfiler' && &readonly ? 'RO' : ''
+ endfunction
+ function! LightlineFilename()
+ return ('' != LightlineReadonly() ? LightlineReadonly() . ' ' : '') .
+ \ (&ft == 'vimfiler' ? vimfiler#get_status_string() :
+ \ &ft == 'unite' ? unite#get_status_string() :
+ \ &ft == 'vimshell' ? vimshell#get_status_string() :
+ \ '' != expand('%:t') ? expand('%:t') : '[No Name]') .
+ \ ('' != LightlineModified() ? ' ' . LightlineModified() : '')
+ endfunction
+ function! LightlineFugitive()
+ if &ft !~? 'vimfiler' && exists('*fugitive#head')
+ return fugitive#head()
+ endif
+ return ''
+ endfunction
+<
+A nice example for |vim-powerline| font users:
+>
+ let g:lightline = {
+ \ 'colorscheme': 'wombat',
+ \ 'active': {
+ \ 'left': [ [ 'mode', 'paste' ], [ 'fugitive', 'filename' ] ]
+ \ },
+ \ 'component_function': {
+ \ 'fugitive': 'LightlineFugitive',
+ \ 'filename': 'LightlineFilename'
+ \ },
+ \ 'separator': { 'left': '⮀', 'right': '⮂' },
+ \ 'subseparator': { 'left': '⮁', 'right': '⮃' }
+ \ }
+ function! LightlineModified()
+ return &ft =~ 'help\|vimfiler' ? '' : &modified ? '+' : &modifiable ? '' : '-'
+ endfunction
+ function! LightlineReadonly()
+ return &ft !~? 'help\|vimfiler' && &readonly ? '⭤' : ''
+ endfunction
+ function! LightlineFilename()
+ return ('' != LightlineReadonly() ? LightlineReadonly() . ' ' : '') .
+ \ (&ft == 'vimfiler' ? vimfiler#get_status_string() :
+ \ &ft == 'unite' ? unite#get_status_string() :
+ \ &ft == 'vimshell' ? vimshell#get_status_string() :
+ \ '' != expand('%:t') ? expand('%:t') : '[No Name]') .
+ \ ('' != LightlineModified() ? ' ' . LightlineModified() : '')
+ endfunction
+ function! LightlineFugitive()
+ if &ft !~? 'vimfiler' && exists('*fugitive#head')
+ let branch = fugitive#head()
+ return branch !=# '' ? '⭠ '.branch : ''
+ endif
+ return ''
+ endfunction
+<
+
+------------------------------------------------------------------------------
+POWERFUL EXAMPLE *lightline-powerful-example*
+
+For users who uses lots of plugins:
+>
+ let g:lightline = {
+ \ 'colorscheme': 'wombat',
+ \ 'active': {
+ \ 'left': [ [ 'mode', 'paste' ], [ 'fugitive', 'filename' ], ['ctrlpmark'] ],
+ \ 'right': [ [ 'syntastic', 'lineinfo' ], ['percent'], [ 'fileformat', 'fileencoding', 'filetype' ] ]
+ \ },
+ \ 'component_function': {
+ \ 'fugitive': 'LightlineFugitive',
+ \ 'filename': 'LightlineFilename',
+ \ 'fileformat': 'LightlineFileformat',
+ \ 'filetype': 'LightlineFiletype',
+ \ 'fileencoding': 'LightlineFileencoding',
+ \ 'mode': 'LightlineMode',
+ \ 'ctrlpmark': 'CtrlPMark',
+ \ },
+ \ 'component_expand': {
+ \ 'syntastic': 'SyntasticStatuslineFlag',
+ \ },
+ \ 'component_type': {
+ \ 'syntastic': 'error',
+ \ },
+ \ 'subseparator': { 'left': '|', 'right': '|' }
+ \ }
+
+ function! LightlineModified()
+ return &ft =~ 'help' ? '' : &modified ? '+' : &modifiable ? '' : '-'
+ endfunction
+
+ function! LightlineReadonly()
+ return &ft !~? 'help' && &readonly ? 'RO' : ''
+ endfunction
+
+ function! LightlineFilename()
+ let fname = expand('%:t')
+ return fname == 'ControlP' && has_key(g:lightline, 'ctrlp_item') ? g:lightline.ctrlp_item :
+ \ fname == '__Tagbar__' ? g:lightline.fname :
+ \ fname =~ '__Gundo\|NERD_tree' ? '' :
+ \ &ft == 'vimfiler' ? vimfiler#get_status_string() :
+ \ &ft == 'unite' ? unite#get_status_string() :
+ \ &ft == 'vimshell' ? vimshell#get_status_string() :
+ \ ('' != LightlineReadonly() ? LightlineReadonly() . ' ' : '') .
+ \ ('' != fname ? fname : '[No Name]') .
+ \ ('' != LightlineModified() ? ' ' . LightlineModified() : '')
+ endfunction
+
+ function! LightlineFugitive()
+ try
+ if expand('%:t') !~? 'Tagbar\|Gundo\|NERD' && &ft !~? 'vimfiler' && exists('*fugitive#head')
+ let mark = '' " edit here for cool mark
+ let branch = fugitive#head()
+ return branch !=# '' ? mark.branch : ''
+ endif
+ catch
+ endtry
+ return ''
+ endfunction
+
+ function! LightlineFileformat()
+ return winwidth(0) > 70 ? &fileformat : ''
+ endfunction
+
+ function! LightlineFiletype()
+ return winwidth(0) > 70 ? (&filetype !=# '' ? &filetype : 'no ft') : ''
+ endfunction
+
+ function! LightlineFileencoding()
+ return winwidth(0) > 70 ? (&fenc !=# '' ? &fenc : &enc) : ''
+ endfunction
+
+ function! LightlineMode()
+ let fname = expand('%:t')
+ return fname == '__Tagbar__' ? 'Tagbar' :
+ \ fname == 'ControlP' ? 'CtrlP' :
+ \ fname == '__Gundo__' ? 'Gundo' :
+ \ fname == '__Gundo_Preview__' ? 'Gundo Preview' :
+ \ fname =~ 'NERD_tree' ? 'NERDTree' :
+ \ &ft == 'unite' ? 'Unite' :
+ \ &ft == 'vimfiler' ? 'VimFiler' :
+ \ &ft == 'vimshell' ? 'VimShell' :
+ \ winwidth(0) > 60 ? lightline#mode() : ''
+ endfunction
+
+ function! CtrlPMark()
+ if expand('%:t') =~ 'ControlP' && has_key(g:lightline, 'ctrlp_item')
+ call lightline#link('iR'[g:lightline.ctrlp_regex])
+ return lightline#concatenate([g:lightline.ctrlp_prev, g:lightline.ctrlp_item
+ \ , g:lightline.ctrlp_next], 0)
+ else
+ return ''
+ endif
+ endfunction
+
+ let g:ctrlp_status_func = {
+ \ 'main': 'CtrlPStatusFunc_1',
+ \ 'prog': 'CtrlPStatusFunc_2',
+ \ }
+
+ function! CtrlPStatusFunc_1(focus, byfname, regex, prev, item, next, marked)
+ let g:lightline.ctrlp_regex = a:regex
+ let g:lightline.ctrlp_prev = a:prev
+ let g:lightline.ctrlp_item = a:item
+ let g:lightline.ctrlp_next = a:next
+ return lightline#statusline(0)
+ endfunction
+
+ function! CtrlPStatusFunc_2(str)
+ return lightline#statusline(0)
+ endfunction
+
+ let g:tagbar_status_func = 'TagbarStatusFunc'
+
+ function! TagbarStatusFunc(current, sort, fname, ...) abort
+ let g:lightline.fname = a:fname
+ return lightline#statusline(0)
+ endfunction
+
+ " Syntastic can call a post-check hook, let's update lightline there
+ " For more information: :help syntastic-loclist-callback
+ function! SyntasticCheckHook(errors)
+ call lightline#update()
+ endfunction
+
+ let g:unite_force_overwrite_statusline = 0
+ let g:vimfiler_force_overwrite_statusline = 0
+ let g:vimshell_force_overwrite_statusline = 0
+<
+------------------------------------------------------------------------------
+TROUBLESHOOTING *lightline-troubleshooting*
+
+Problem 1: |lightline-problem-1|
+ How to install this plugin.
+
+Problem 2: |lightline-problem-2|
+ How to update this plugin.
+
+Problem 3: |lightline-problem-3|
+ How to uninstall this plugin.
+
+Problem 4: |lightline-problem-4|
+ Cool statuslines appear only on |:vsp|.
+
+Problem 5: |lightline-problem-5|
+ The statusline does not seem to be correctly colored.
+
+Problem 6: |lightline-problem-6|
+ How to install a patched font.
+
+Problem 7: |lightline-problem-7|
+ Right triangles do not stick to the right components with the
+ patched font.
+
+Problem 8: |lightline-problem-8|
+ Triangles do not appear. Triangles look weird.
+
+Problem 9: |lightline-problem-9|
+ Where can I find the list of all the cool characters for patched fonts?
+
+Problem 10: |lightline-problem-10|
+ Cool statusline disappears in |unite|, |vimfiler| and |vimshell|
+ buffers.
+
+Problem 11: |lightline-problem-11|
+ Cool statusline disappears in |CtrlP|, |Tagbar| buffers.
+
+Problem 12: |lightline-problem-12|
+ How to make the plus sign red like |powerline|?
+
+Problem 13: |lightline-problem-13|
+ How to change the lightline colorscheme on the fly.
+
+Problem 14: |lightline-problem-14|
+ The 'E541' warning appears on the right hand side.
+ Many components disable the statusline of lightline.
+
+Problem 15: |lightline-problem-15|
+ Do not deal with the tabline.
+ Do not use the fancy separators in the tabline.
+
+Problem 16: |lightline-problem-16|
+ When changed the component to a function component to an expanding
+ component, the statusline of lightline is sometimes disabled.
+
+Problem 17: |lightline-problem-17|
+ Found a bug of this plugin.
+ Got many errors while using this plugin.
+ Vim hangs while using this plugin.
+ Want this plugin to be more configurable.
+ This troubleshooting is not helpful.
+
+- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+
+Problem 1: *lightline-problem-1*
+ How to install this plugin.
+
+ If you are to install this plugin manually:
+
+ 1. Put all the files under $VIM.
+
+ If you are using |vim-pathogen|, install this plugin with the
+ following command.
+>
+ git clone https://github.com/itchyny/lightline.vim \
+ ~/.vim/bundle/lightline.vim
+<
+ If you are to install this plugin using |Vundle|:
+
+ 1. Add the following configuration to your
+ .vimrc(_vimrc).
+>
+ Plugin 'itchyny/lightline.vim'
+<
+ 2. Install with |:PluginInstall|.
+
+ If you are to install this plugin using |NeoBundle|:
+
+ 1. Add the following configuration to your
+ .vimrc(_vimrc).
+>
+ NeoBundle 'itchyny/lightline.vim'
+<
+ 2. Install with |:NeoBundleInstall|.
+
+ If you are to install this plugin using |vim-plug|:
+
+ 1. Add the following configuration to your
+ .vimrc(_vimrc).
+>
+ Plug 'itchyny/lightline.vim'
+<
+ 2. Install with |:PlugInstall|.
+
+Problem 2: *lightline-problem-2*
+ How to update this plugin.
+
+ If you have installed this plugin manually:
+
+ 1. Access https://github.com/itchyny/lightline.vim .
+ 2. Download the latest scripts.
+ 3. Place the scripts as written in Problem 1.
+
+ If you have installed this plugin using Vundle:
+
+ 1. Execute |:PluginUpdate|.
+
+ If you have installed this plugin using NeoBundle:
+
+ 1. Execute |:NeoBundleUpdate|.
+
+ If you have installed this plugin using vim-plug:
+
+ 1. Execute |:PlugUpdate|.
+
+Problem 3: *lightline-problem-3*
+ How to uninstall this plugin.
+
+ If you have installed this plugin manually:
+
+ 1. Remove all the lightline.*s under $VIM.
+
+ If you have installed this plugin using Vundle:
+
+ 1. Remove the :Plugin 'itchyny/lightline.vim'
+ configuration from your .vimrc(_vimrc).
+ 2. Update with |:PluginClean|.
+
+ If you have installed this plugin using NeoBundle:
+
+ 1. Remove the :NeoBundle 'itchyny/lightline.vim'
+ configuration from your .vimrc(_vimrc).
+ 2. Update with |:NeoBundleClean|.
+
+ If you have installed this plugin using vim-plug:
+
+ 1. Remove the :Plug 'itchyny/lightline.vim'
+ configuration from your .vimrc(_vimrc).
+ 2. Update with |:PlugClean|.
+
+Problem 4: *lightline-problem-4*
+ Cool statuslines appear only on |:vsp|.
+
+ Add the following setting to your .vimrc(_vimrc).
+>
+ set laststatus=2
+<
+Problem 5: *lightline-problem-5*
+ The statusline does not seem to be correctly colored.
+
+ Add
+>
+ export TERM=xterm-256color
+<
+ to your .*shrc and add
+>
+ if !has('gui_running')
+ set t_Co=256
+ endif
+<
+ to your .vimrc(_vimrc).
+
+Problem 6: *lightline-problem-6*
+ How to install a patched font.
+
+ There are two kinds of patched fonts:
+
+ + The patched fonts for |vim-powerline|
+ (https://github.com/Lokaltog/vim-powerline):
+ follow the guide https://github.com/Lokaltog/vim-powerline/tree/develop/fontpatcher
+ + The patched fonts for |powerline|
+ (https://github.com/Lokaltog/powerline):
+ download from https://github.com/Lokaltog/powerline-fonts
+
+Problem 7: *lightline-problem-7*
+ Right triangles do not stick to the right components with patched
+ font.
+
+ Remove the following setting from your .vimrc(_vimrc).
+>
+ set ambiwidth=double
+<
+ If you want to keep this setting, try the patched font for
+ |vim-powerline|.
+
+Problem 8: *lightline-problem-8*
+ Triangles do not appear. Triangles look weird.
+
+ If the triangles do not appear (but you get some spaces or
+ weird characters like <bf> or ¿), firstly try adding
+>
+ scriptencoding utf-8
+ set encoding=utf-8
+<
+ to the head of your .vimrc(_vimrc). Still you have weird
+ characters, use the unicode numbers. For |powerline| font
+ users:
+>
+ \ 'separator': { 'left': "\ue0b0", 'right': "\ue0b2" },
+ \ 'subseparator': { 'left': "\ue0b1", 'right': "\ue0b3" }
+<
+ For |vim-powerline| font users:
+>
+ \ 'separator': { 'left': "\u2b80", 'right': "\u2b82" },
+ \ 'subseparator': { 'left': "\u2b81", 'right': "\u2b83" }
+<
+ The full list of unicode numbers for fancy characters is shown
+ in |lightline-problem-9|.
+
+ If the triangles are shown in appropriate characters but the
+ colors do not look correctly, see the following.
+ If you are using iTerm2, change the following settings.
+
+ + set Profiles>Colors>Minimum contrast to the Lowest.
+ + set Profiles>Window>Transparency to the Opaquest.
+
+ For other terminals, this weird-triangle problem will be
+ resolved by disabling transparency or contrast adjustment.
+
+Problem 9: *lightline-problem-9*
+ Where can I find the list of all the cool characters for patched fonts?
+
+ Default powerline vim-powerline
+ separator.left '' '' (\ue0b0) '⮀' (\u2b80)
+ separator.right '' '' (\ue0b2) '⮂' (\u2b82)
+ subseparator.left '|' '' (\ue0b1) '⮁' (\u2b81)
+ subseparator.right '|' '' (\ue0b3) '⮃' (\u2b83)
+ branch symbol -- '' (\ue0a0) '⭠' (\u2b60)
+ readonly symbol -- '' (\ue0a2) '⭤' (\u2b64)
+ linecolumn symbol -- '' (\ue0a1) '⭡' (\u2b61)
+
+Problem 10: *lightline-problem-10*
+ Cool statusline disappears on |unite|, |vimfiler| and |vimshell|
+ buffers.
+
+ Add the following settings to your .vimrc(_vimrc).
+>
+ let g:unite_force_overwrite_statusline = 0
+ let g:vimfiler_force_overwrite_statusline = 0
+ let g:vimshell_force_overwrite_statusline = 0
+<
+Problem 11: *lightline-problem-11*
+ Cool statusline disappears in |CtrlP|, |Tagbar| buffers.
+
+ Add the following settings to your .vimrc(_vimrc).
+>
+ let g:ctrlp_status_func = {
+ \ 'main': 'CtrlPStatusFunc_1',
+ \ 'prog': 'CtrlPStatusFunc_2',
+ \ }
+ function! CtrlPStatusFunc_1(focus, byfname, regex, prev, item, next, marked)
+ return lightline#statusline(0)
+ endfunction
+ function! CtrlPStatusFunc_2(str)
+ return lightline#statusline(0)
+ endfunction
+
+ let g:tagbar_status_func = 'TagbarStatusFunc'
+ function! TagbarStatusFunc(current, sort, fname, ...) abort
+ return lightline#statusline(0)
+ endfunction
+<
+ See |lightline-powerful-example| for more cool settings for
+ these plugins.
+
+Problem 12: *lightline-problem-12*
+ How to make the plus sign red like |powerline|?
+
+ Use the following settings.
+>
+ let g:lightline = {
+ \ 'component': {
+ \ 'modified': '%#ModifiedColor#%{LightlineModified()}',
+ \ }
+ \ }
+ function! LightlineModified()
+ let map = { 'V': 'n', "\<C-v>": 'n', 's': 'n', 'v': 'n', "\<C-s>": 'n', 'c': 'n', 'R': 'n'}
+ let mode = get(map, mode()[0], mode()[0])
+ let bgcolor = {'n': [240, '#585858'], 'i': [31, '#0087af']}
+ let color = get(bgcolor, mode, bgcolor.n)
+ exe printf('hi ModifiedColor ctermfg=196 ctermbg=%d guifg=#ff0000 guibg=%s term=bold cterm=bold',
+ \ color[0], color[1])
+ return &modified ? '+' : &modifiable ? '' : '-'
+ endfunction
+<
+ It's surely complicated. There's no easy API to do a thing
+ like this. But it means that your request does not match
+ the spirit of lightline.
+
+Problem 13: *lightline-problem-13*
+ How to change the lightline colorscheme on the fly.
+
+ To update your lightline colorscheme in sync with your vim
+ colorscheme (only for select colorschemes which exist for
+ both), add the following settings to your .vimrc(_vimrc).
+>
+ augroup LightlineColorscheme
+ autocmd!
+ autocmd ColorScheme * call s:lightline_update()
+ augroup END
+ function! s:lightline_update()
+ if !exists('g:loaded_lightline')
+ return
+ endif
+ try
+ if g:colors_name =~# 'wombat\|solarized\|landscape\|jellybeans\|seoul256\|Tomorrow'
+ let g:lightline.colorscheme =
+ \ substitute(substitute(g:colors_name, '-', '_', 'g'), '256.*', '', '')
+ call lightline#init()
+ call lightline#colorscheme()
+ call lightline#update()
+ endif
+ catch
+ endtry
+ endfunction
+<
+ If you have not settled on a single lightline colorscheme, you
+ can easily switch between lightline colorschemes by adding the
+ following LightlineColorscheme command to your .vimrc(_vimrc).
+>
+ function! s:set_lightline_colorscheme(name) abort
+ let g:lightline.colorscheme = a:name
+ call lightline#init()
+ call lightline#colorscheme()
+ call lightline#update()
+ endfunction
+
+ function! s:lightline_colorschemes(...) abort
+ return join(map(
+ \ globpath(&rtp,"autoload/lightline/colorscheme/*.vim",1,1),
+ \ "fnamemodify(v:val,':t:r')"),
+ \ "\n")
+ endfunction
+
+ command! -nargs=1 -complete=custom,s:lightline_colorschemes LightlineColorscheme
+ \ call s:set_lightline_colorscheme(<q-args>)
+<
+Problem 14: *lightline-problem-14*
+ The 'E541' warning appears on the right hand side.
+ Many components disable the statusline of lightline.
+
+ The number of items in statusline/tabline is limited to 80
+ (see |E541|). You cannot register too much components.
+
+Problem 15: *lightline-problem-15*
+ Do not deal with the tabline.
+ Do not use the fancy separators in the tabline.
+
+ You can disable the tabline feature of lightline.vim using:
+>
+ let g:lightline = {
+ \ 'enable': { 'tabline': 0 },
+ \ }
+<
+ If you don't like the separators in the tabline, use:
+>
+ let g:lightline = {
+ \ 'tabline_separator': { 'left': "", 'right': "" },
+ \ 'tabline_subseparator': { 'left': "", 'right': "" },
+ \ }
+<
+Problem 16: *lightline-problem-16*
+ When changed the component to a function component to an expanding
+ component, the statusline of lightline is sometimes disabled.
+
+ When you changed from
+>
+ \ 'component_function': {
+ \ 'my': 'My',
+ \ }
+<
+ to
+>
+ \ 'component_expand': {
+ \ 'my': 'My',
+ \ }
+<
+ the statusline of lightline is disabled unexpectedly.
+ In such a case, the text returned by 'My' function may include
+ the '%' character. Replace all the '%' signs with '%%'.
+>
+ function My()
+ ...
+ return substitute(text, '%', '%%', 'g')
+ endfunction
+<
+Problem 17: *lightline-problem-17*
+ Found a bug of this plugin.
+ Got many errors while using this plugin.
+ Vim hangs while using this plugin.
+ Want this plugin to be more configurable.
+ This troubleshooting is not helpful.
+
+ Report/Request the issue/feature at
+ https://github.com/itchyny/lightline.vim/issues.
+
+==============================================================================
+vim:tw=78:sw=4:ts=8:ft=help:norl:noet:
diff --git a/start/lightline/plugin/lightline.vim b/start/lightline/plugin/lightline.vim
new file mode 100644
index 0000000..fc8f598
--- /dev/null
+++ b/start/lightline/plugin/lightline.vim
@@ -0,0 +1,26 @@
+" =============================================================================
+" Filename: plugin/lightline.vim
+" Author: itchyny
+" License: MIT License
+" Last Change: 2018/06/22 08:49:00.
+" =============================================================================
+
+if exists('g:loaded_lightline') || v:version < 700
+ finish
+endif
+let g:loaded_lightline = 1
+
+let s:save_cpo = &cpo
+set cpo&vim
+
+augroup lightline
+ autocmd!
+ autocmd WinEnter,BufWinEnter,FileType,SessionLoadPost * call lightline#update()
+ autocmd SessionLoadPost * call lightline#highlight()
+ autocmd ColorScheme * if !has('vim_starting') || expand('<amatch>') !=# 'macvim'
+ \ | call lightline#update() | call lightline#highlight() | endif
+ autocmd CursorMoved,BufUnload * call lightline#update_once()
+augroup END
+
+let &cpo = s:save_cpo
+unlet s:save_cpo