aboutsummaryrefslogtreecommitdiff
path: root/vim/autoload/html.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-09 00:34:44 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-09 00:34:44 +1200
commit91220b6858bfcdd360b78cb1c4a36ab59cf82421 (patch)
tree891a9decc34e3598bc19c92767dd7b40bc3387dd /vim/autoload/html.vim
parentRemove unnecessary g: prefixes to Vim variables (diff)
downloaddotfiles-91220b6858bfcdd360b78cb1c4a36ab59cf82421.tar.gz
dotfiles-91220b6858bfcdd360b78cb1c4a36ab59cf82421.zip
Remove unnecessary l: prefixes to Vim variables
Diffstat (limited to 'vim/autoload/html.vim')
-rw-r--r--vim/autoload/html.vim20
1 files changed, 10 insertions, 10 deletions
diff --git a/vim/autoload/html.vim b/vim/autoload/html.vim
index e0d47e47..9466be33 100644
--- a/vim/autoload/html.vim
+++ b/vim/autoload/html.vim
@@ -16,9 +16,9 @@ endfunction
" Tidy the whole buffer
function! html#TidyBuffer() abort
- let l:view = winsaveview()
+ let view = winsaveview()
%!tidy -quiet
- call winrestview(l:view)
+ call winrestview(view)
endfunction
" Update a timestamp
@@ -26,14 +26,14 @@ function! html#TimestampUpdate() abort
if !&modified
return
endif
- let l:cv = winsaveview()
+ let cv = winsaveview()
call cursor(1,1)
- let l:li = search('\C^\s*<em>Last updated: .\+</em>$', 'n')
- if l:li
- let l:date = substitute(system('date -u'), '\C\n$', '', '')
- let l:line = getline(l:li)
- call setline(l:li, substitute(l:line, '\C\S.*',
- \ '<em>Last updated: '.l:date.'</em>', ''))
+ let li = search('\C^\s*<em>Last updated: .\+</em>$', 'n')
+ if li
+ let date = substitute(system('date -u'), '\C\n$', '', '')
+ let line = getline(li)
+ call setline(li, substitute(line, '\C\S.*',
+ \ '<em>Last updated: '.date.'</em>', ''))
endif
- call winrestview(l:cv)
+ call winrestview(cv)
endfunction