Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 615330 - app-editors/vim: CSV Syntax:Invalid column pattern, using default pattern
Summary: app-editors/vim: CSV Syntax:Invalid column pattern, using default pattern
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal trivial
Assignee: Oskari Pirhonen
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-12 07:30 UTC by segmentation fault
Modified: 2023-02-10 04:28 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Example .tsv file (example.tsv,18 bytes, text/plain)
2017-04-12 07:42 UTC, segmentation fault
Details

Note You need to log in before you can comment on or make changes to this bug.
Description segmentation fault 2017-04-12 07:30:49 UTC
Upon opening a tab-separated file (.tsv), I get:

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


Reason
------

"This happens usually, because either the column pattern is invalid
or the syntax script cannot access the configuation variables setup 
by the filetype plugin, which is caused by having a 

:syntax on 

line before the 

:filetype plugin 

line in your .vimrc."

(from: https://github.com/chrisbra/csv.vim/issues/29)


Solution
--------

Move the code block


" {{{ Filetype plugin settings
" Enable plugin-provided filetype settings, but only if the ftplugin
" directory exists (which it won't on livecds, for example).
if isdirectory(expand("$VIMRUNTIME/ftplugin"))
  filetype plugin on

  " Uncomment the next line (or copy to your ~/.vimrc) for plugin-provided
  " indent settings. Some people don't like these, so we won't turn them on by
  " default.
  " filetype indent on
endif
" }}}


before the code block


" {{{ Syntax highlighting settings
" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
  syntax on
  set hlsearch
endif
" }}}

in

/etc/vim/vimrc
Comment 1 segmentation fault 2017-04-12 07:42:08 UTC
Created attachment 469794 [details]
Example .tsv file