Skip to content

Setting g:csv_highlight_column breaks default action of :h v_b_A #147

@sharat87

Description

@sharat87

I've run quite a few tests to confirm this and I'm pretty sure that setting g:csv_highlight_column is the culprit. Here's my full configuration for csv.vim:

let g:no_csv_maps = 1
let g:csv_nomap_space = 1
let g:csv_nomap_bs = 1
let g:csv_nomap_l = 1
let g:csv_nomap_h = 1
let g:csv_no_conceal = 1
let g:csv_highlight_column = 'y'
let g:csv_hiGroup = 'CSVHiGroup'
autocmd ssk ColorScheme * hi default CSVHiGroup guibg=#FFEEAA gui=BOLD

With this config, and editing the following file:

abc,1
defghi,2
j,3

I do this in normal mode: gg0<C-v>G$A,xyz<ESC>. After that , the file contains the following:

abc,,xyz1
defg,xyzhi,2
j,3 ,xyz

But I expected the following:

abc,1,xyz
defghi,2,xyz
j,3,xyz

I managed to replicate this with vim --clean and adding csv.vim to rtp (after setting g:csv_highlight_column of course.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions