Skip to content
This repository was archived by the owner on Mar 21, 2022. It is now read-only.

Commit 1447a9b

Browse files
zhmarskevinoid
authored andcommitted
Fix #7 - Error opening a .jsonc file
1 parent 9784b98 commit 1447a9b

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

ftplugin/jsonc.vim

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,8 @@ else
66
let b:did_ftplugin_jsonc = 1
77
endif
88

9-
" A list of commands that undo buffer local changes made below.
10-
let s:undo_ftplugin = []
11-
12-
" Set comment (formatting) related options. {{{1
9+
" Set comment (formatting) related options.
1310
setlocal commentstring=//%s comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
14-
call add(s:undo_ftplugin, 'commentstring< comments<')
1511

1612
" Let Vim know how to disable the plug-in.
17-
call map(s:undo_ftplugin, "'execute ' . string(v:val)")
18-
let b:undo_ftplugin = join(s:undo_ftplugin, ' | ')
19-
unlet s:undo_ftplugin
13+
let b:undo_ftplugin = 'setlocal commentstring< comments<'

0 commit comments

Comments
 (0)