runtime(robot): Include ftplugin and set comment options
Set 'comments' and 'commentstring' for Robot Framework files. closes: #21220 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Dawid Dziurla <dawidd0811@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
1 parent
d53f436eaa
commit
a96c3bc1f7
2 files changed
+18
No files matched your search
@@ -316,6 +316,7 @@ runtime/ftplugin/rasi.vim @fymyte
|
||||
runtime/ftplugin/readline.vim @dkearns
|
||||
runtime/ftplugin/remind.vim @joereynolds
|
||||
runtime/ftplugin/rescript.vim @ribru17
|
||||
runtime/ftplugin/robot.vim @dawidd6
|
||||
runtime/ftplugin/routeros.vim @zainin
|
||||
runtime/ftplugin/rst.vim @marshallward
|
||||
runtime/ftplugin/ruby.vim @tpope @dkearns
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
" Vim filetype plugin
|
||||
" Language: Robot Framework
|
||||
" Maintainer: Dawid Dziurla (github.com/dawidd6)
|
||||
" Last Change: 2026 Sep 04
|
||||
|
||||
if exists('b:did_ftplugin')
|
||||
finish
|
||||
endif
|
||||
let b:did_ftplugin = 1
|
||||
|
||||
setl comments=:# commentstring=#\ %s
|
||||
|
||||
let b:undo_ftplugin = get(b:, 'undo_ftplugin', '')
|
||||
if !empty(b:undo_ftplugin)
|
||||
let b:undo_ftplugin .= ' | '
|
||||
endif
|
||||
let b:undo_ftplugin .= 'setlocal comments< commentstring<'
|
||||
Reference in new issue
Block a user