Minor cleanup: remove dead code; formatting.

This commit is contained in:
LCD 47 2014-01-03 18:58:30 +02:00
parent 38275ced14
commit 2d9ff2457f
3 changed files with 24 additions and 29 deletions

View File

@ -48,18 +48,18 @@ set cpo&vim
" TODO: join this with xhtml.vim for DRY's sake?
function! s:TidyEncOptByFenc()
let tidy_opts = {
\'utf-8' : '-utf8',
\'ascii' : '-ascii',
\'latin1' : '-latin1',
\'iso-2022-jp' : '-iso-2022',
\'cp1252' : '-win1252',
\'macroman' : '-mac',
\'utf-16le' : '-utf16le',
\'utf-16' : '-utf16',
\'big5' : '-big5',
\'cp932' : '-shiftjis',
\'sjis' : '-shiftjis',
\'cp850' : '-ibm858',
\'utf-8': '-utf8',
\'ascii': '-ascii',
\'latin1': '-latin1',
\'iso-2022-jp': '-iso-2022',
\'cp1252': '-win1252',
\'macroman': '-mac',
\'utf-16le': '-utf16le',
\'utf-16': '-utf16',
\'big5': '-big5',
\'cp932': '-shiftjis',
\'sjis': '-shiftjis',
\'cp850': '-ibm858',
\}
return get(tidy_opts, &fileencoding, '-utf8')
endfunction

View File

@ -18,11 +18,6 @@ let g:loaded_syntastic_twig_twiglint_checker = 1
let s:save_cpo = &cpo
set cpo&vim
function! SyntaxCheckers_twig_twiglint_GetHighlightRegex(item)
" Let's match the full line for now
return '\V'
endfunction
function! SyntaxCheckers_twig_twiglint_GetLocList() dict
let makeprg = self.makeprgBuild({ 'args': 'lint --format=csv' })

View File

@ -30,18 +30,18 @@ set cpo&vim
" TODO: join this with html.vim DRY's sake?
function! s:TidyEncOptByFenc()
let tidy_opts = {
\'utf-8' : '-utf8',
\'ascii' : '-ascii',
\'latin1' : '-latin1',
\'iso-2022-jp' : '-iso-2022',
\'cp1252' : '-win1252',
\'macroman' : '-mac',
\'utf-16le' : '-utf16le',
\'utf-16' : '-utf16',
\'big5' : '-big5',
\'cp932' : '-shiftjis',
\'sjis' : '-shiftjis',
\'cp850' : '-ibm858',
\'utf-8': '-utf8',
\'ascii': '-ascii',
\'latin1': '-latin1',
\'iso-2022-jp': '-iso-2022',
\'cp1252': '-win1252',
\'macroman': '-mac',
\'utf-16le': '-utf16le',
\'utf-16': '-utf16',
\'big5': '-big5',
\'cp932': '-shiftjis',
\'sjis': '-shiftjis',
\'cp850': '-ibm858',
\}
return get(tidy_opts, &fileencoding, '-utf8')
endfunction