| deline : A lightweight statusline plugin with construction functionality 
 
 
  | script karma | Rating 12/6,
    Downloaded by 3552 | Comments, bugs, improvements | Vim wiki |  
 
script versions (upload new version)| created by |  | Shuhei Kubota |  |  |  | script type |  | utility |  |  |  | description |  | # Features 
 * A lightweight statusline definition
 * With DSL -> statusline-expression library
 * Readable
 * Extensible
 * Dynamic evaluation added
 
 
 # Examples
 
 ## Statusline definition
 
 This is a default definition of statusline by Deline.
 
 call Deline([
 \ deline#comment("mode (define User2 and change to it by hl(2)"),
 \ deline#modeHL("User2"),
 \ deline#hl(2),
 \ deline#space(),
 \ deline#mode(),
 \ deline#space(),
 \
 \ deline#comment("filepath and mod, readonly flags"),
 \ deline#hl(1), deline#space(),
 \ deline#hl(4),
 \ deline#readonly('[RO] ', ''),
 \ deline#modified('+ ', ''),
 \
 \ deline#comment("v-- expand(%:p:h:t) / expand(%:p:t)"),
 \ deline#comment("deline#file(':p:h:t/:p:t'),"),
 \ deline#hl(3), deline#file(':p:h:t'), "/",
 \ deline#hl(1), deline#file(':p:t'),
 \ deline#space(),
 \ deline#hl(4), deline#notsaved(2),
 \
 \ deline#rightalign(),
 \
 \ deline#comment("\ deline#fileformat(),"),
 \ deline#dynamic#if("&fileformat!='unix'", deline#hl(4), deline#hl(1)),
 \ deline#fileformat(),
 \ deline#hl(1),
 \
 \ deline#comment("v-- separator"),
 \ deline#space(), deline#hl(3), deline#bar(), deline#hl(1), deline#space(),
 \
 \ deline#comment("\ deline#fileencoding(),"),
 \ deline#dynamic#if("&fileencoding!='utf-8'", deline#hl(4), deline#hl(1)),
 \ deline#fileencoding(),
 \ deline#hl(1),
 \
 \ deline#space(), deline#hl(3), deline#bar(), deline#hl(1), deline#space(),
 \
 \ deline#filetype(),
 \
 \ deline#space(), deline#hl(3), deline#bar(), deline#hl(1), deline#space(),
 \
 \ deline#line(), ":", deline#columnv(),
 \
 \ deline#space(),
 \ ])
 
 ## Without default definition
 
 To prevent Deline from overwriting statusline with Deline's default definition, add the line below in your vimrc.
 
 let g:Deline_DefaultDefinitions = 0
 
 ## Configuration
 
 Call `DelineConfig`  to configure highlights and literals.
 
 ### Mode
 
 This example defines COMMAND mode.
 
 " "mode_c" is ( "mode_" . mode() ).
 " "" is a string displayed in statusline.
 " "guifg", "guibg", ... is a part of highlight definition.
 augroup Deline_mysetting
 autocmd VimEnter * call DelineConfig({
 \ "mode_c": {
 \ "": " COMMAND ",
 \ "guifg": "#000000",
 \ "guibg": "#ffffff",
 \ },
 \ })
 augroup END
 
 ### Using example definition
 
 " diable Deline's defaults.
 let g:Deline_DefaultDefinitions = 0
 
 " call an example function.
 augroup Deline_mysetting
 " autocmd VimEnter * call deline#example#powerful()
 autocmd VimEnter * call deline#example#gradient()
 augroup END
 
 |  |  |  | install details |  |  |  |  |  
Click on the package to download.
 
ip used for rating: 142.132.191.50 |