Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions autoload/context/commentstring.vim
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ let g:context#commentstring#table['vim'] = {
\ 'vimLuaRegion' : '--%s',
\ 'vimPerlRegion' : '#%s',
\ 'vimPythonRegion' : '#%s',
\ 'vimDefBody' : '#%s',
\ 'vimUserCmdBlock' : '#%s',
\ 'vimAutoCmdBlock' : '#%s',
\}

let g:context#commentstring#table['html'] = {
Expand Down
15 changes: 15 additions & 0 deletions samples/vim/example.vim
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,18 @@ class StrawberryIcecream:
print 'EAT ME'
EOF
endfunction


" Samples of Vim9 syntax in legacy script

def TestDef()
echo ':help :def'
enddef

command TestCommandBlock {
echo ':help :command-repl'
}

autocmd FileType vim {
echo ':help :autocmd-block'
}