if !exists('g:loaded_snips') || exists('s:did_'.&ft.'_snips') fini en let s:did_{&ft}_snips = 1 " automatically add a closing '/' to the end of xhtml tags let c = &ft == 'xhtml' ? ' /' : '' " Some useful Unicode entities " Non-Breaking Space exe 'Snipp nbs ' " ← exe 'Snipp left ←' " → exe 'Snipp right →' " ↑ exe 'Snipp up ↑' " ↓ exe 'Snipp down ↓' " ↩ exe 'Snipp return ↩' " ⇤ exe 'Snipp backtab ⇤' " ⇥ exe 'Snipp tab ⇥' " ⇧ exe 'Snipp shift ⇧' " ⌃ exe 'Snipp control ⌃' " ⌅ exe 'Snipp enter ⌅' " ⌘ exe 'Snipp command ⌘' " ⌥ exe 'Snipp option ⌥' " ⌦ exe 'Snipp delete ⌦' " ⌫ exe 'Snipp backspace ⌫' " ⎋ exe 'Snipp escape ⎋' " Generic Doctype exe "Snipp! doctype \"HTML 4.01 Strict\" " exe "Snipp! doctype \"HTML 4.01 Transitional\" " exe "Snipp! doctype \"HTML 5\" " exe "Snipp! doctype \"XHTML 1.0 Frameset\" " exe "Snipp! doctype \"XHTML 1.0 Strict\" " exe "Snipp! doctype \"XHTML 1.0 Transitional\" " exe "Snipp! doctype \"XHTML 1.1\" " " HTML Doctype 4.01 Strict exe "Snipp docts " " HTML Doctype 4.01 Transitional exe "Snipp doct " " HTML Doctype 5 exe 'Snipp doct5 ' " XHTML Doctype 1.0 Frameset exe "Snipp docxf " " XHTML Doctype 1.0 Strict exe "Snipp docxs " " XHTML Doctype 1.0 Transitional exe "Snipp docxt " " XHTML Doctype 1.1 exe "Snipp docx " exe "Snipp html \n${1}\n" exe "Snipp xhtml \n${1}\n" exe "Snipp body
\n\t${1}\n" exe "Snipp head \n\t\n\t" \. "| ${2:Header} |
|---|
| ${3:Data} |