安装 histwin

http://www.vim.org/scripts/script.php?script_id=2932
为 histwin 配置 viminfo
tags support for pgsql