Mercurial > vim
changeset 35570:c20886f6e1fa
runtime(doc): clarify how to re-init csv syntax file
Commit: https://github.com/vim/vim/commit/b9bbf1f04439a6cdb6d376c94852721e4ebf8300
Author: Christian Brabandt <cb@256bit.org>
Date: Sun Jul 7 19:24:36 2024 +0200
runtime(doc): clarify how to re-init csv syntax file
fixes: https://github.com/vim/vim/issues/15161
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 07 Jul 2024 19:30:09 +0200 |
parents | 5ddb64277ebb |
children | 6954739a0d42 |
files | runtime/doc/syntax.txt runtime/doc/tags |
diffstat | 2 files changed, 17 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -1,4 +1,4 @@ -*syntax.txt* For Vim version 9.1. Last change: 2024 Jul 03 +*syntax.txt* For Vim version 9.1. Last change: 2024 Jul 06 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1221,6 +1221,21 @@ will be classified as tcsh, UNLESS 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*
--- a/runtime/doc/tags +++ b/runtime/doc/tags @@ -7268,6 +7268,7 @@ ft-context-settings ft_context.txt /*ft- ft-cpp-syntax syntax.txt /*ft-cpp-syntax* ft-csh-syntax syntax.txt /*ft-csh-syntax* ft-css-omni insert.txt /*ft-css-omni* +ft-csv-syntax syntax.txt /*ft-csv-syntax* ft-cweb-syntax syntax.txt /*ft-cweb-syntax* ft-cynlib-syntax syntax.txt /*ft-cynlib-syntax* ft-dart-syntax syntax.txt /*ft-dart-syntax*