Vim Tips Wiki


Revision as of 18:25, March 31, 2012 by (Talk)

1,619pages on
this wiki

Possible tweaks for closetag.vim:

1) Leave the cursor just before the close tag.

This way you can invoke the close tag just after typing the opening tag, leaving the cursor automatically in the middle for filling the tag with the content.

  Change the line:
     return "</".tag.">"
     return "</".tag.">\<esc>bbli"

2) Use Ctrl+> instead of Ctrl+_ for invoking the script

Is faster, as > is the last character you type in the opening tag and you already have the finger there! :-)

   In the script replace  <C-_> by  <C-\>

Around Wikia's network

Random Wiki