From 7e63d9ddd9380cecf61f946dbc06ae9c3d834c6d Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Wed, 14 Aug 2013 02:36:09 +0000 Subject: [PATCH] rename variable so it's more obvious --- autoload/airline/extensions/csv.vim | 8 ++++++-- doc/airline.txt | 8 ++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/autoload/airline/extensions/csv.vim b/autoload/airline/extensions/csv.vim index baa0c6e..b14a30a 100644 --- a/autoload/airline/extensions/csv.vim +++ b/autoload/airline/extensions/csv.vim @@ -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().']' diff --git a/doc/airline.txt b/doc/airline.txt index ed1ad07..e5b8d3d 100644 --- a/doc/airline.txt +++ b/doc/airline.txt @@ -180,12 +180,12 @@ tagbar *airline-csv* 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' > ==============================================================================