mirror of
https://github.com/neovim/neovim.git
synced 2026-09-09 23:45:51 +00:00
Set 'comments' and 'commentstring' for Robot Framework files.
closes: vim/vim#21220
a96c3bc1f7
Co-authored-by: Dawid Dziurla <dawidd0811@gmail.com>
18 lines
406 B
VimL
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<'
|