diff options
author | dkearns <dougkearns@gmail.com> | 2024-02-28 06:00:32 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-27 20:00:32 +0100 |
commit | e84d2d4432cd6e43f2bb300d02abc90d551bcf4a (patch) | |
tree | fc2195d499035ae5f5ad69b1f45f8c2661b75914 /runtime | |
parent | b1427b46f5fe50a1daba102c4017d0ef2624b3ba (diff) |
runtime(sh): Update ftplugin, fix #14101 (#14102)
Add the 'b' flag to 'comments', so that the shebang line is not detected as comment.
Fixes #14101.
Signed-off-by: Doug Kearns <dougkearns@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/ftplugin/sh.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/ftplugin/sh.vim b/runtime/ftplugin/sh.vim index fccfe4be91..6d2093bf83 100644 --- a/runtime/ftplugin/sh.vim +++ b/runtime/ftplugin/sh.vim @@ -4,7 +4,7 @@ " Previous Maintainer: Dan Sharp " Contributor: Enno Nagel <ennonagel+vim@gmail.com> " Eisuke Kawashima -" Last Change: 2024 Jan 14 +" Last Change: 2024 Feb 27 if exists("b:did_ftplugin") finish @@ -14,7 +14,7 @@ let b:did_ftplugin = 1 let s:save_cpo = &cpo set cpo-=C -setlocal comments=:# +setlocal comments=b:# setlocal commentstring=#\ %s setlocal formatoptions-=t formatoptions+=croql |