From ff2cbe8facd56e27705e6ada2c08136773e5bbe8 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Wed, 9 Apr 2025 09:42:10 +0200 Subject: vim-patch:7517a8c: runtime(lf): improve syntax script, add filetype plugin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Greatly improve detection and highlighting of command/shell regions, input-device key labels, escape sequences (@joelim-work) - Add ftplugin for formatoptions, toggling comment areas (@andis-sprinkis) - Add a few missing lf option keywords, rm. old non-working code, misc. formatting (@andis-sprinkis) closes: vim/vim#17078 https://github.com/vim/vim/commit/7517a8cadfd0e70d0422955cbad4767f6a40f29d Co-authored-by: Andis Spriņķis --- runtime/ftplugin/lf.vim | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 runtime/ftplugin/lf.vim (limited to 'runtime/ftplugin') diff --git a/runtime/ftplugin/lf.vim b/runtime/ftplugin/lf.vim new file mode 100644 index 0000000000..7cec11194e --- /dev/null +++ b/runtime/ftplugin/lf.vim @@ -0,0 +1,22 @@ +" Vim filetype plugin file +" Language: lf file manager configuration file (lfrc) +" Maintainer: Andis Sprinkis +" URL: https://github.com/andis-sprinkis/lf-vim +" Last Change: 6 Apr 2025 + +if exists("b:did_ftplugin") | finish | endif + +let b:did_ftplugin = 1 + +let s:cpo = &cpo +set cpo&vim + +let b:undo_ftplugin = "setlocal comments< commentstring< formatoptions<" + +setlocal comments=:# +setlocal commentstring=#\ %s + +setlocal formatoptions-=t formatoptions+=rol + +let &cpo = s:cpo +unlet s:cpo -- cgit