aboutsummaryrefslogtreecommitdiff
path: root/vim/indent/html.vim
blob: 7b16fb3abf86d020d4f5ade073fa5c37513657a6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
" Restore local indent settings to the global values
runtime indent/_GLOBAL.vim

" Run tidy -eq -utf8 on file for the current buffer
nnoremap <leader>v :exe "!tidy -eq -utf8 " . shellescape(expand("%"))<CR>

" Make a bare URL into a link to itself
function! UrlLink()
  normal yiW
  execute "normal i<a href=\"\<C-R>0\">\<Esc>"
  normal E
  execute "normal a</a>\<Esc>"
endfunction
nnoremap <silent> <leader>r :<C-U>call UrlLink()<CR>