Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Vim Automatically Change Comma Delimited CSV to Pipes?

Tags:

vim

vi

csv

macvim

I open a comma separated CSV file with text wrangler and textedit and it shows comma , separated values.

However, opening with MacVim gives me a pipe | delimited file.

How can I disable this behavior?

like image 415
Bryan Avatar asked Sep 16 '25 17:09

Bryan


1 Answers

I had the same problem.

There's a popular plugin called csv.vim that has the behaviour you describe. This plugin is used by the language-pack plugin, vim-polyglot.

As you can see in the csv.vim docs, you can stop it from replacing , with | if you put this in your ~/.vimrc

let g:csv_no_conceal = 1
like image 64
Captain_Obvious Avatar answered Sep 19 '25 06:09

Captain_Obvious