exit temporary modified file without saving and jump back to my previous viewing place in vim -
this question has answer here:
in vim
, viewing file, , opened temporary file , did modification, want original file. typed ctrl-o
, got e37: no write since last change (add ! override)
how can exit temporary modified file without saving , jump previous viewing place?
by turning on 'hidden'
can jump between unsaved buffers without e37
error messages. don't worry vim stop exiting without saving changes unless use :q!
.
set hidden
see :h 'hidden'
more information.
Comments
Post a Comment