Extended handling for heredocs in vim.
- Enables syntax highlighting inside heredocs
When naming the delimiter for a heredoc use the following:
cat << SHELL
echo example
SHELLThis will then be correctly highlighted with sh.vim
Additional options can be configured by setting g:heredoc_matches e.g.
let g:heredoc_matches = [['SHELL', 'sh'], ['PYTHON', 'python']]- Work out how to make indentation work properly inside
- Some sort of background color change or other indicator that the lines are within a heredoc