Vim plugin for csv files

48 views
Skip to first unread message

Ven Tadipatri

unread,
May 28, 2025, 12:34:21 PMMay 28
to vim...@googlegroups.com
Hi, 
  When I open up CSV files with vim, I get an error message:

CSV Syntax:Invalid column pattern, using default pattern \%([^,]*,\|$\)

CSV Syntax:Or ftplugin hasn't been sourced before the syntax script

But I don't see any plugins in my vimrc that could be causing this. How do I see what plugin is opening the csv file and open it using the raw format (or if possible, fix the plugin)?


call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'preservim/nerdtree'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'airblade/vim-gitgutter'
Plugin 'tpope/vim-surround'
Plugin 'tpope/vim-fugitive'
Plugin 'sheerun/vim-polyglot'
Plugin 'cosminadrianpopescu/vim-sql-workbench'
Plugin 'unkiwii/vim-nerdtree-sync'
call vundle#end()            " required

Thanks,
Ven

Eric Christopherson

unread,
May 28, 2025, 12:56:52 PMMay 28
to vim_use
On Wed, May 28, 2025, 11:34 AM Ven Tadipatri <vtadi...@gmail.com> wrote:
Hi, 
  When I open up CSV files with vim, I get an error message:

CSV Syntax:Invalid column pattern, using default pattern \%([^,]*,\|$\)

CSV Syntax:Or ftplugin hasn't been sourced before the syntax script

But I don't see any plugins in my vimrc that could be causing this. How do I see what plugin is opening the csv file and open it using the raw format (or if possible, fix the plugin)?

It would be sheerun/vim-polyglot, I think. 



call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'preservim/nerdtree'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'airblade/vim-gitgutter'
Plugin 'tpope/vim-surround'
Plugin 'tpope/vim-fugitive'
Plugin 'sheerun/vim-polyglot'
Plugin 'cosminadrianpopescu/vim-sql-workbench'
Plugin 'unkiwii/vim-nerdtree-sync'
call vundle#end()            " required

Thanks,
Ven

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/vim_use/CAEodY67itVQoGb98sJk%3DhYCohn-7csFO%3DHJ7vJ4C7q8kO2grwA%40mail.gmail.com.

Christian Brabandt

unread,
May 28, 2025, 3:21:46 PMMay 28
to vim...@googlegroups.com
Have you read :h csv-syntax-error ?

Thanks,
Christian
--
Your wise men don't know how it feels
To be thick as a brick.
-- Jethro Tull, "Thick As A Brick"

David Lowry-Duda

unread,
May 29, 2025, 10:49:14 AMMay 29
to vim...@googlegroups.com
On 12:33 Wed 28 May 2025, Ven Tadipatri wrote:
>How do I see what plugin is opening the csv file and open
>it using the raw format (or if possible, fix the plugin)?
>
>call vundle#begin()
>Plugin 'VundleVim/Vundle.vim'
>Plugin 'preservim/nerdtree'
>Plugin 'ctrlpvim/ctrlp.vim'
>Plugin 'airblade/vim-gitgutter'
>Plugin 'tpope/vim-surround'
>Plugin 'tpope/vim-fugitive'
>Plugin 'sheerun/vim-polyglot'
>Plugin 'cosminadrianpopescu/vim-sql-workbench'
>Plugin 'unkiwii/vim-nerdtree-sync'
>call vundle#end() " required

In general, I think binary search (by commenting out partitions of the plugins for vundle to load) works the fastest. But in this case it's probably vim-polyglot.

- DLD
Reply all
Reply to author
Forward
0 new messages