" Set the tab width to 4 set tabstop=4 set shiftwidth=4 " Disable Vim's special HTML indentation rules filetype indent off " Recalculate the text width whenever the cursor moves let basetw = 80 autocmd cursormoved,cursormovedi *.html let &textwidth = basetw + indent(line('.')) " Macros let mapleader = ";" imap /<\\>cf> " Shortcuts for unicode characters imap ' ’ imap nd – imap md — " Comment syntax imap cm `ma imap bc O " Document setup nmap ht :set textwidth=0iOO<ESC>mmajoO<\>?<\\>`ma nmap vp mmgg/O:noh`m nmap ss gg/O:noh`ma nmap ic gg/O?<\\>`ma " The Structural Module imap ad
mma
`ma imap bq
O imap dv
O<\>?<\\>`ma imap di
<\>
?<\\>`ma imap h1

mma

`ma imap h2

mma

`ma imap h3

mma

`ma imap h4

mma

`ma imap h5
mma
`ma imap h6
mma
`ma imap pa

mma

`ma imap pr
mma
`ma imap hr
imap ns O " The Text Module imap ab <\><\>?<\\>`ma imap br
imap ct mma<\>?<\\>`ma imap cd mma<\>?<\\>`ma imap df mma<\>?<\\>`ma imap em mma<\>?<\\>`ma imap kb mma<\>?<\\>`ma imap qu mma<\>?<\\>`ma imap sa mma<\>?<\\>`ma imap sp <\><\>?<\\>`ma imap st mma<\>?<\\>`ma imap su mma<\>?<\\>`ma imap sb mma<\>?<\\>`ma imap va mma<\>?<\\>`ma " The List Module imap dl
O imap dt
mma
`ma imap dd
mma
`ma imap ol
O imap ul
O imap li
  • mma
  • `ma " Other things imap an <\><\>?i imap ob <\><\>?<\\>`ma " The Edit Module imap in INS>mma`ma imap de DEL>mma`ma " The Tables Module imap ta
    O imap ca mma`ma imap te O imap tb O imap tf O imap tr O imap th mma`ma imap td mma`ma imap cg O<\>?<\\>`ma imap ci ?<\\>`ma imap co `ma imap cs ?<\\>`ma " Customized elements imap ts
    mma
    `ma imap dh
    O imap db
    O imap df
    O imap or
    O imap se
    O imap fi
    O imap fc

    mma

    `ma imap fb
    O imap hh imap bh imap me O