42_so_long/dev/ber.vim
mcolonna 9e81a59a7e feat: loots of things!!! *
Added features:
- Check if the room is valid
- Pathfinding
- Firsk
- Camera
Changes:
- Borders
Dev:
- new test rooms
- ber.vim plugin
2024-04-15 19:46:35 +02:00

27 lines
546 B
VimL

function! BerSyntax()
if expand('%:e') == 'ber'
highlight berDefault ctermfg=white ctermbg=red
syntax match berDefault /./
highlight ber0 ctermfg=grey
syntax match ber0 /0/
highlight ber1 cterm=bold ctermfg=white
syntax match ber1 /1/
highlight berP cterm=bold ctermfg=blue
syntax match berP /P/
highlight berC cterm=bold ctermfg=yellow
syntax match berC /C/
highlight berE cterm=bold ctermfg=green
syntax match berE /E/
highlight berF cterm=bold ctermfg=red
syntax match berF /F/
endif
endfunction
autocmd BufReadPost * call BerSyntax()