]> git.phdru.name Git - dotfiles.git/blob - .vim/ftplugin/htmlcheetah.vim
Fix(bin/cp_recode_fname): Fix misspelled message
[dotfiles.git] / .vim / ftplugin / htmlcheetah.vim
1 if exists("b:did_ftplugin")
2    finish
3 endif
4
5 if has("iconv") && !exists('b:encoding_set')
6    " Try to recognize the file encoding and convert the file
7    if search('^#\(encoding\|unicode\) ') > 0
8       let line = getline(".")
9       let encoding = matchlist(line, '#\(encoding\|unicode\) \([^ ]\+\)$')[2]
10       call SetupEncoding(encoding)
11    endif
12 endif
13
14 setlocal autoindent shiftwidth=2 softtabstop=2 textwidth=78
15 setlocal matchpairs+=<:> " Add brokets to the list of pairs that match for the '%' command