sponsor Vim development Vim logo Vim Book Ad

Enter Indent : By pressing enter between two tags, the cursor is repositioned <esc> O

 script karma  Rating 36/9, Downloaded by 1304  Comments, bugs, improvements  Vim wiki

created by
Anderson Custódio de Oliveira
 
script type
utility
 
description
|  - 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
 
install details
Save to .vim/plugin
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
enter-indent.vim 0.0.3 2012-06-07 7.0 Anderson Custódio de Oliveira Adicionado suporte para <!--[if ]><![endif]-->
Mudança no modo de criar o recuo de linha, agora funciona de acordo com as configurações do vim.
enter-indent.vim 0.0.2 2011-05-05 7.0 Anderson Custódio de Oliveira Ao pressionar esc em dois colchetes vazios, era gerado um colchete inútil, o problema foi resolvido com a mudança da seqüência de comandos do "feedkeys".
enter-indent.vim 0.0.1 2011-05-04 7.0 Anderson Custódio de Oliveira Avoiding Unnecessary processes and fix tags {if}, {elseif} and get the other smarty.
enter-indent.vim 0.0.0 2011-05-03 7.0 Anderson Custódio de Oliveira Initial upload
ip used for rating: 216.73.216.208

Questions about Vim should go to the maillist. Help Uganda.     Vim at Github