Skip to content

markeganfuller/vim-heredoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Vim Heredoc

Extended handling for heredocs in vim.

  • Enables syntax highlighting inside heredocs

Usage

When naming the delimiter for a heredoc use the following:

cat << SHELL
echo example
SHELL

This will then be correctly highlighted with sh.vim

Additional options

Additional options can be configured by setting g:heredoc_matches e.g.

let g:heredoc_matches = [['SHELL', 'sh'], ['PYTHON', 'python']]

To Do

  • 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

About

Extended handling for heredocs in vim.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published