Add auto-resize and vi copying