Add visual mode searching function and last edit position