" ~/.vim/ftplugin/html/html.vim " HTML-specific vim configuration " " Syntastic linter: tidy " Tabs are expanded to 2 spaces setlocal tabstop=2 shiftwidth=2 expandtab " Show existing tabs (they can be deleted with :retab) setlocal list " Column marker: 100 characters call matchadd('ColorColumn', '\%101v', 100) setlocal textwidth=100 let mapleader = " " nnoremap o :w:!$BROWSER % & nnoremap f :!firefox --new-window % & nnoremap C :sp ~/.vim/ftplugin/html/html.vim nnoremap e :Errors nnoremap temp :-1r ~/.vim/ftplugin/html/snips/template.txtGdd?<+++>cf> let mapleader = "," " Layout elements inoremap header
<++>kki inoremap nav <++>kki inoremap section
<++>kki inoremap article
<++>kki inoremap footer
<++>kki inoremap aside <++>kki inoremap div
<++>
<++>?""a " Headers and paragraphs inoremap h1

<++>?i inoremap h2

<++>?i inoremap h3

<++>?i inoremap h4

<++>?i inoremap h5
<++>?i inoremap h6
<++>?i inoremap p

<++>?

i " Text formatting inoremap b <++>?i inoremap i <++>?i inoremap em <++>?i inoremap code <++>?i inoremap sub <++>?i inoremap sup <++>?i inoremap cite <++>?i " Tables inoremap table <++><++>
<++>
<++>?""a inoremap tr <++>kki inoremap th <++>?i inoremap td <++>?i " Lists inoremap ul
  • <++>
<++>?i inoremap ol
  1. <++>
<++>?i inoremap li
  • <++>?i " Forms inoremap form
    <++>3ki inoremap fs
    <++>kki inoremap legend <++>?i inoremap label <++>?i " Media inoremap a <++><++>?""a inoremap img <++><++>?""a " Misc " Comment a line nnoremap c I0 " Uncomment a line nnoremap C 05x/-->3x0