diff --git a/vim/plugin/htmlescape.vim b/vim/plugin/htmlescape.vim
new file mode 100644
index 00000000..fa4bc748
--- /dev/null
+++ b/vim/plugin/htmlescape.vim
@@ -0,0 +1,15 @@
+" via: http://vim.wikia.com/wiki/HTML_entities
+function HtmlEscape()
+ silent s/&/\&/eg
+ silent s/\</eg
+ silent s/>/\>/eg
+endfunction
+
+function HtmlUnEscape()
+ silent s/<//eg
+ silent s/&/\&/eg
+endfunction
+
+map :call HtmlEscape()
+map :call HtmlUnEscape()