]> git.phdru.name Git - dotfiles.git/blob - .vim/ftplugin/html.vim
Feat(recode-filenames-recursive): Allow to omit parameters
[dotfiles.git] / .vim / ftplugin / html.vim
1 if exists("b:did_ftplugin")
2    finish
3 endif
4
5 if version >= 702 && has("iconv") && !exists('b:encoding_set')
6    " Try to recognize the file encoding and convert the file
7    let encoding = system("get_html_encoding.py " . shellescape(expand("%")))
8    if !v:shell_error
9       if !empty(encoding)
10          call SetupEncoding(encoding)
11       endif
12    endif
13 endif
14
15 setlocal matchpairs+=<:> " Add brokets to the list of pairs that match for the '%' command
16 set shiftwidth=2 softtabstop=2
17
18 if expand("%:t") == "bookmarks.html"
19    setlocal textwidth=0
20    call SetNoWrap()
21    nmap \h G6k6dd1G0
22 else
23    setlocal textwidth=78
24 endif