From 7195d331afbaae83fd58bea728353dd13b23db11 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Mon, 8 Jul 2024 06:17:46 +0800 Subject: vim-patch:b9bbf1f: runtime(doc): clarify how to re-init csv syntax file fixes: vim/vim#15161 https://github.com/vim/vim/commit/b9bbf1f04439a6cdb6d376c94852721e4ebf8300 Co-authored-by: Christian Brabandt --- runtime/doc/syntax.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'runtime') diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt index c95b6d5584..07a546cfdd 100644 --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -752,6 +752,21 @@ will be classified as tcsh, UNLESS the "filetype_csh" variable exists. If the "filetype_csh" variable exists, the filetype will be set to the value of the variable. +CSV *ft-csv-syntax* + +If you change the delimiter of the CSV file, the syntax highlighting will be +now longer match the changed file content. You will need to unlet the +following variable: > + + :unlet b:csv_delimiter + +And afterwards save and reload the file: > + + :w + :e + +Now the syntax engine should determine the newly changed csv delimiter. + CYNLIB *cynlib.vim* *ft-cynlib-syntax* -- cgit