mirror of
https://github.com/docker/docs.git
synced 2026-04-05 18:58:55 +07:00
Set commentstring in Vim syntax plugin
By setting the commentstring, you support commenting with plugins like tComment. Now Vim won't default to incorrect `/* */` comments.
This commit is contained in:
@@ -20,3 +20,5 @@ highlight link dockerfileString String
|
||||
|
||||
syntax match dockerfileComment "\v^\s*#.*$"
|
||||
highlight link dockerfileComment Comment
|
||||
|
||||
set commentstring=#\ %s
|
||||
|
||||
Reference in New Issue
Block a user