use wheel event on new versions of Firefox

fixes #1466
fix ^ in vim mode on swedish keyboard on mac
Add vim commands for folding
fix vim folding commands
fix horizontal scrolling
fix typo
Merge pull request #1502 from ajaxorg/scrolling_issues

fix several small issues on mac