This is a mirror of http://www.vim.org/scripts/script.php?script_id=3575 | - represents the cursor # body { | } In the above situation, pressing enter, the result is as follows # body { | } Other examples <tr>|</tr> <tr> | </tr> {if} | {/if} {if} | {/if} I recommend that you use this plugin in conjunction http://www.vim.org/scripts/script.php?script_id=2754 Download a zipped archive, leave bug reports and feature request here: http://github.com/acustodioo/vim-enter-indent PS: Sorry if the text is poorly written, I am learning English