What would cause vim not to retain command history?
Check presence and rights for ~/.viminfo. Usually that's it which keeps command history, file editing positions, etc. One possible case is that this file belongs to root.
Check presence and rights for ~/.viminfo. Usually that's it which keeps command history, file editing positions, etc. One possible case is that this file belongs to root.