Skip to content

Commit 911742a

Browse files
dseomnchrisbra
authored andcommitted
runtime(dosini): Add support for # comments to ftplugin
runtime/syntax/dosini.vim supports both ; and # as comments, and I think a bunch of the files detected as dosini do too, so add support for # to the ftplugin. closes: #16681 Signed-off-by: David Mandelberg <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent d6e3c90 commit 911742a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

runtime/ftplugin/dosini.vim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
" Vim filetype plugin file
22
" Language: Configuration File (ini file) for MS-DOS/MS Windows
3+
" Maintainer: This runtime file is looking for a new maintainer.
34
" Previous Maintainer: Nikolai Weibull <[email protected]>
4-
" Latest Revision: 2008-07-09
5+
" Latest Revision: 2025 Feb 20
56

67
if exists("b:did_ftplugin")
78
finish
@@ -13,7 +14,7 @@ set cpo&vim
1314

1415
let b:undo_ftplugin = "setl com< cms< fo<"
1516

16-
setlocal comments=:; commentstring=;\ %s formatoptions-=t formatoptions+=croql
17+
setlocal comments=:;,:# commentstring=;\ %s formatoptions-=t formatoptions+=croql
1718

1819
let &cpo = s:cpo_save
1920
unlet s:cpo_save

0 commit comments

Comments
 (0)