vim-patch:7.4.336

Problem:    Setting 'history' to a big value causes out-of-memory errors.
Solution:   Limit the value to 10000. (Hirohito Higashi)

https://code.google.com/p/vim/source/detail?r=a42ba1e5099290a86cac1a9ac490c49e82e4c2cf

This is a redo of [PR #991](https://github.com/neovim/neovim/pull/991). As atwupak mentioned, this patch includes a documentation change, so we're waiting on [#938](https://github.com/neovim/neovim/pull/938).