Skip to content

Commit a8cac39

Browse files
authored
Add commentstring to vim editor
Add a commentstring to the vim syntax, such that block comments are easily made using gcc
1 parent f6a8b09 commit a8cac39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

support/common/editors/mccode.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
" McStas/McXtrace instruments are mostly c syntax so start with that
1414
:runtime! syntax/c.vim
15-
15+
:setlocal commentstring=//\ %s
1616
"keywords for mcstas statements
1717
:syntax keyword instrStatement DECLARE DEPENDENCY DEFINE END FINALLY INITIALIZE MCDISPLAY SAVE SHARE USERVARS
1818
:syntax keyword instrStatement TRACE DEFINITION PARAMETERS POLARISATION SETTING STATE

0 commit comments

Comments
 (0)