diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2025-04-09 09:42:10 +0200 |
|---|---|---|
| committer | Christian Clason <ch.clason+github@icloud.com> | 2025-04-09 10:14:27 +0200 |
| commit | ff2cbe8facd56e27705e6ada2c08136773e5bbe8 (patch) | |
| tree | 7f59e93d73d814e042e237cf2d1670f05f6eccf1 /runtime/ftplugin | |
| parent | c73a827564083b4dadb3a70468466306fb416d08 (diff) | |
| download | rneovim-ff2cbe8facd56e27705e6ada2c08136773e5bbe8.tar.gz rneovim-ff2cbe8facd56e27705e6ada2c08136773e5bbe8.tar.bz2 rneovim-ff2cbe8facd56e27705e6ada2c08136773e5bbe8.zip | |
vim-patch:7517a8c: runtime(lf): improve syntax script, add filetype plugin
- 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 <andis@sprinkis.com>
Diffstat (limited to 'runtime/ftplugin')
| -rw-r--r-- | runtime/ftplugin/lf.vim | 22 |
1 files changed, 22 insertions, 0 deletions
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 <andis@sprinkis.com> +" 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 |