From 6d7996ff1ba63fade9c85095dc620148374c6edf Mon Sep 17 00:00:00 2001 From: Chang Yu-heng Date: Mon, 19 Jan 2015 00:04:26 +0800 Subject: [PATCH] Replace column number with virtual column number --- autoload/airline/init.vim | 2 +- t/init.vim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/airline/init.vim b/autoload/airline/init.vim index 021b3b28..a990e78b 100644 --- a/autoload/airline/init.vim +++ b/autoload/airline/init.vim @@ -105,7 +105,7 @@ function! airline#init#sections() let g:airline_section_y = airline#section#create_right(['ffenc']) endif if !exists('g:airline_section_z') - let g:airline_section_z = airline#section#create(['windowswap', '%3p%%'.spc, 'linenr', ':%3c ']) + let g:airline_section_z = airline#section#create(['windowswap', '%3p%%'.spc, 'linenr', ':%3v ']) endif if !exists('g:airline_section_warning') let g:airline_section_warning = airline#section#create(['syntastic', 'eclim', 'whitespace']) diff --git a/t/init.vim b/t/init.vim index 86efe582..d1a2abb8 100644 --- a/t/init.vim +++ b/t/init.vim @@ -44,7 +44,7 @@ describe 'init sections' it 'section z should be line numbers' Expect g:airline_section_z =~ '%3p%%' Expect g:airline_section_z =~ '%4l' - Expect g:airline_section_z =~ '%3c' + Expect g:airline_section_z =~ '%3v' end it 'should not redefine sections already defined'