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?

有帮助吗?

解决方案 2

It looks to be a plugin that I installed. Not sure which one. I just did a clean install of Vim because my original was jammed with plugins I downloaded to test.

其他提示

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

Add this snippet to your .vimrc file

let g:csv_delim = ','

It overrides any plugins changing the delimiter on a csv file.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top