blob: b305a2239c0532741f2b043c2d39a58e5113f431 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
" Run tidy -eq -utf8 on file for the current buffer
function s:HTMLTidy()
execute '!tidy -eq -utf8 ' . shellescape(expand('%'))
endfunction
nnoremap <LocalLeader>v :exe :<C-U>call <SID>HTMLTidy()<CR>
" Make a bare URL into a link to itself
function! s:UrlLink()
normal! yiW
execute "normal! i<a href=\"\<C-R>0\">\<Esc>"
normal! E
execute "normal! a</a>\<Esc>"
endfunction
nnoremap <silent> <LocalLeader>r :<C-U>call <SID>UrlLink()<CR>
|