Gerald Lai wrote:

Mark,

Here's an alternate suggestion:

You may want to take a look at ":help template". It may be better to
have a file with the HTML header/skeleton elsewhere that you can read in
to your current buffer on demand. For example:

  :read skeleton.htm

This way, you don't have to wrestle with :abbreviate - you can make
skeleton.htm as pretty as you wish (indents and all). Besides,
abbreviating "htm" may cause future problems everytime you do type "htm".

You could try a mapping instead:

  nnoremap \htm :read skeleton.htm<CR>

With the mapping above, in Normal mode, type "\htm" and skeleton.htm
will be inserted into your text.

Hi All,

Gerald, not a bad alternative, indeed. Will look at it more deeply.
Great stuff!!. Cheers.

Mark Sargent.

Reply via email to