I have made some modifications to a buffer. How do I edit another
buffer without saving the modified buffer and also without losing the modifications? You can set the ‘hidden’ option to edit a file without losing modifications to the current file:
:set hidden
By setting the ‘hidden’ option, you can also save the modification history (undo-history) for the buffer. Otherwise, as you switch between files, the undo-history will be lost (unless you use persistent undofiles).
Comments (1)
Pepsh Pepshinsky
Let’s see you to :help viminfo-file-name (option -i) :set viminfofile=NONE