From 1834c083aa436d59713b0054566e06648d67ac1e Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 30 Oct 2017 19:11:22 +1300 Subject: Apply name conventions, scoping to Vim identifiers The Google VimScript Style Guide says : >In general, use plugin-names-like-this, FunctionNamesLikeThis, >CommandNamesLikeThis, augroup_names_like_this, >variable_names_like_this. Adjusted variable, function, and `augroup` names accordingly, including setting script scope for some of the functions and their calls (`s:` and `` prefixes). Initially I tried using `prefix#`, but it turns out that this is a namespacing contention for publically callable functions like `pathogen#infect`, and none of these functions need to be publically callable. --- vim/ftplugin/html.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vim/ftplugin/html.vim') diff --git a/vim/ftplugin/html.vim b/vim/ftplugin/html.vim index ca762422..3f28e9ea 100644 --- a/vim/ftplugin/html.vim +++ b/vim/ftplugin/html.vim @@ -2,10 +2,10 @@ nnoremap v :exe "!tidy -eq -utf8 " . shellescape(expand("%")) " Make a bare URL into a link to itself -function! UrlLink() +function! s:UrlLink() normal! yiW execute "normal! i0\">\" normal! E execute "normal! a\" endfunction -nnoremap r :call UrlLink() +nnoremap r :call UrlLink() -- cgit v1.2.3