Skip to content

Commit

Permalink
use function! instead of function
Browse files Browse the repository at this point in the history
This prevents warnings if the file is sourced again after loading.
  • Loading branch information
taybin committed Sep 12, 2012
1 parent 0d673be commit 852facd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/htmlescape.vim
@@ -1,11 +1,11 @@
" via: http://vim.wikia.com/wiki/HTML_entities
function HtmlEscape()
function! HtmlEscape()
silent s/&/\&/eg
silent s/</\&lt;/eg
silent s/>/\&gt;/eg
endfunction

function HtmlUnEscape()
function! HtmlUnEscape()
silent s/&lt;/</eg
silent s/&gt;/>/eg
silent s/&amp;/\&/eg
Expand Down

0 comments on commit 852facd

Please sign in to comment.