blob: d0625fb713bd4546dac42b4014aba8611713ea1e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
" Extra configuration for HTML files
if &filetype != 'html' || &compatible || v:version < 700
finish
endif
" Use tidy(1) for checking and program formatting
compiler tidy
setlocal equalprg=tidy\ -quiet
let b:undo_ftplugin = b:undo_ftplugin
\ . '|unlet b:current_compiler'
\ . '|setlocal equalprg<'
\ . '|setlocal errorformat<'
\ . '|setlocal makeprg<'
" Set up hooks for timestamp updating
augroup html_timestamp
autocmd BufWritePre <buffer>
\ if exists('b:html_timestamp_check')
\| call html#TimestampUpdate()
\|endif
augroup END
let b:undo_ftplugin = b:undo_ftplugin
\ . '|autocmd! html_timestamp BufWritePre <buffer>'
" Stop here if the user doesn't want ftplugin mappings
if exists('g:no_plugin_maps') || exists('g:no_html_maps')
finish
endif
" Set mappings
nnoremap <buffer> <LocalLeader>r
\ :<C-U>call html#UrlLink()<CR>
let b:undo_ftplugin = b:undo_ftplugin
\ . '|nunmap <buffer> <LocalLeader>r'
|