RHEL has no vim jinja syntax highlight

Posted on

RHEL has no vim jinja syntax highlight

you can download jinja syntax from
https://www.vim.org/scripts/script.php?script_id=1856

and file put in /usr/share/vim/vim82/syntax directory

and edit /usr/share/vim/vim82/filetype.vim
add below text

" Jinja
au BufNewFile,BufRead *.jinja,*.j2              setf jinja

it's all

thx

jinja syntax

Responses