aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-10-13 19:33:25 +0200
committerChristian Clason <ch.clason+github@icloud.com>2024-10-14 08:27:37 +0200
commit15aa27bc1f999adac3f4d69742ca31992fb5f837 (patch)
tree44aa023bcf76bafc136aec24f04dd901dd1c938f /runtime/doc
parent1189c5ce599ad7172dfde3eb7c0be9c5f8d742f2 (diff)
downloadrneovim-15aa27bc1f999adac3f4d69742ca31992fb5f837.tar.gz
rneovim-15aa27bc1f999adac3f4d69742ca31992fb5f837.tar.bz2
rneovim-15aa27bc1f999adac3f4d69742ca31992fb5f837.zip
vim-patch:9.1.0778: filetype: lf config files are not recognized
Problem: filetype: lf config files are not recognized Solution: detect lfrc files as lf filetype, include a syntax script for lf files (Andis Spriņķis). References: - https://github.com/gokcehan/lf closes: vim/vim#15859 https://github.com/vim/vim/commit/0f146b7925178a5bdfdc8e07642976f0b76d9612 Co-authored-by: Andis Spriņķis <spr.andis@protonmail.com>
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/syntax.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt
index 5cdcf564c9..19991f0761 100644
--- a/runtime/doc/syntax.txt
+++ b/runtime/doc/syntax.txt
@@ -1750,6 +1750,20 @@ define the vim variable 'lace_case_insensitive' in your startup file: >
:let lace_case_insensitive=1
+LF (LFRC) *lf.vim* *ft-lf-syntax* *g:lf_shell_syntax*
+ *b:lf_shell_syntax*
+
+For the lf file manager configuration files (lfrc) the shell commands
+syntax highlighting can be changed globally and per buffer by setting
+a different 'include' command search pattern using these variables:
+ let g:lf_shell_syntax = "syntax/dosbatch.vim"
+ let b:lf_shell_syntax = "syntax/zsh.vim"
+
+These variables are unset by default.
+
+The default 'include' command search pattern is 'syntax/sh.vim'.
+
+
LEX *lex.vim* *ft-lex-syntax*
Lex uses brute-force synchronizing as the "^%%$" section delimiter