Skip to content

Commit cb3bf29

Browse files
committed
feat: Enable comment functionality out of the box in SIL files
1 parent 5850760 commit cb3bf29

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

ftplugin/sile.vim

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
" SPDX-FileCopyrightText: © 2015 Caleb Maclennan <[email protected]>
2+
" SPDX-License-Identifier: GPL-2.0-or-later
3+
4+
scriptencoding utf-8
5+
6+
call sile#init()
7+
8+
if exists('b:did_ftplugin')
9+
finish
10+
endif
11+
12+
let b:did_ftplugin = 1
13+
14+
setlocal comments=:%
15+
setlocal commentstring=%\ %s

0 commit comments

Comments
 (0)