Files
neovim/runtime/ftplugin/robot.vim
zeertzjq 31626aed41 vim-patch:a96c3bc: runtime(robot): Include ftplugin and set comment options
Set 'comments' and 'commentstring' for Robot Framework files.

closes: vim/vim#21220

a96c3bc1f7

Co-authored-by: Dawid Dziurla <dawidd0811@gmail.com>
2026-09-07 08:05:11 +08:00

18 lines
406 B
VimL

" 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<'