Refactor clipboard.
refactoring.
fixed paste.
Implemented replace mode for Vim.