Wikia

Vim Tips Wiki

Script:13

Talk0
1,612pages on
this wiki
Revision as of 18:25, March 31, 2012 by 83.38.245.85 (Talk)

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.">"
  with:
     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