From 78c3cd9bba1b556e7d7eba167eae75b3932699c8 Mon Sep 17 00:00:00 2001 From: wangjun Date: Fri, 17 Oct 2014 14:40:42 +0800 Subject: [PATCH] Update durant.vim remove comments --- autoload/airline/themes/durant.vim | 42 +----------------------------- 1 file changed, 1 insertion(+), 41 deletions(-) diff --git a/autoload/airline/themes/durant.vim b/autoload/airline/themes/durant.vim index c20fec6..56be7ba 100644 --- a/autoload/airline/themes/durant.vim +++ b/autoload/airline/themes/durant.vim @@ -1,42 +1,9 @@ -" Each theme is contained in its own file and declares variables scoped to the -" file. These variables represent the possible "modes" that airline can -" detect. The mode is the return value of mode(), which gets converted to a -" readable string. The following is a list currently supported modes: normal, -" insert, replace, visual, and inactive. -" -" Each mode can also have overrides. These are small changes to the mode that -" don't require a completely different look. "modified" and "paste" are two -" such supported overrides. These are simply suffixed to the major mode, -" separated by an underscore. For example, "normal_modified" would be normal -" mode where the current buffer is modified. -" -" The theming algorithm is a 2-pass system where the mode will draw over all -" parts of the statusline, and then the override is applied after. This means -" it is possible to specify a subset of the theme in overrides, as it will -" simply overwrite the previous colors. If you want simultaneous overrides, -" then they will need to change different parts of the statusline so they do -" not conflict with each other. -" -" First, let's define an empty dictionary and assign it to the "palette" -" variable. The # is a separator that maps with the directory structure. If -" you get this wrong, Vim will complain loudly. -let g:airline#themes#durant#palette = {} - -" First let's define some arrays. The s: is just a VimL thing for scoping the -" variables to the current script. Without this, these variables would be -" declared globally. Now let's declare some colors for normal mode and add it -" to the dictionary. The array is in the format: -" [ guifg, guibg, ctermfg, ctermbg, opts ]. See "help attr-list" for valid -" values for the "opt" value. - let s:N1 = [ '#005f00' , '#afd700' , 22 , 148 ] let s:N2 = [ '#93a1a1' , '#586e75' , 245 , 240 ] let s:N3 = [ '#93a1a1' , '#073642' , 240 , 233 ] let g:airline#themes#durant#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3) -" Here we define overrides for when the buffer is modified. This will be -" applied after g:airline#themes#durant#palette.normal, hence why only certain keys are -" declared. + let g:airline#themes#durant#normal_modified = { \ 'airline_c': [ '#ffffff' , '#5f005f' , 255 , 53 , '' ] , \ } @@ -78,17 +45,10 @@ let g:airline#themes#durant#palette.inactive_modified = { \ } -" Accents are used to give parts within a section a slightly different look. -" Here we are defining a "red" accent, which is used by the 'readonly' part by -" default. let g:airline#themes#durant#palette.accents = { \ 'red': [ '#ff0000' , '' , 160 , '' ] \ } -" Here we define the color map for ctrlp. We check for the g:loaded_ctrlp -" variable so that related functionality is loaded iff the user is using -" ctrlp. Note that this is optional, and if you do not define ctrlp colors -" they will be chosen automatically from the existing palette. if !get(g:, 'loaded_ctrlp', 0) finish endif