rename variable so it's more obvious
This commit is contained in:
parent
10e8146d7b
commit
7e63d9ddd9
|
@ -1,9 +1,13 @@
|
|||
" MIT license. Copyright (c) 2013 Bailey Ling.
|
||||
" MIT License. Copyright (c) 2013 Bailey Ling.
|
||||
" vim: ts=2 sts=2 sw=2 fdm=indent
|
||||
|
||||
if !exists('g:airline#extensions#csv#column_display')
|
||||
let g:airline#extensions#csv#column_display = 'Number'
|
||||
endif
|
||||
|
||||
function! airline#extensions#csv#apply()
|
||||
if &ft ==# "csv" && exists("*CSV_WCol")
|
||||
if get(g:, 'airline#extensions#csv#column_identify', '') ==# 'Name'
|
||||
if get(g:, 'airline#extensions#csv#column_display', '') ==# 'Name'
|
||||
let column = '['.CSV_WCol('Name').CSV_WCol().']'
|
||||
else
|
||||
let column = '['.CSV_WCol().']'
|
||||
|
|
|
@ -180,12 +180,12 @@ tagbar <https://github.com/majutsushi/>
|
|||
*airline-csv*
|
||||
csv.vim <https://github.com/chrisbra/csv.vim>
|
||||
|
||||
* enable/disable csv integration for displaying the current column number. >
|
||||
* enable/disable csv integration for displaying the current column.
|
||||
let g:airline_enable_csv = 1
|
||||
>
|
||||
* change how columns are identified. >
|
||||
let g:airline#extensions#csv#column_identify = '' (default)
|
||||
let g:airline#extensions#csv#column_identify = 'Name' (extracts column name)
|
||||
* change how columns are displayed. >
|
||||
let g:airline#extensions#csv#column_display = 'Number' (default)
|
||||
let g:airline#extensions#csv#column_display = 'Name'
|
||||
>
|
||||
|
||||
==============================================================================
|
||||
|
|
Loading…
Reference in New Issue