Vim: load changes from previous unsaved session -


i have edited file x , closed file without saving it. when try open file x vim alerts "no write since last change...".

is there way changes back?

below explanation :help message

                                                        *e37* *e89*   no write since last change (add ! override)   no write since last change buffer {n} (add ! override)  trying |abandon| file has changes.  vim protects losing work.  can either write changed file ":w", or, if sure, |abandon| anyway, , lose changes.  can done adding '!' character after command used.  example: >         :e other_file changes to: >         :e! other_file                                                          *e162*   no write since last change buffer "{name}"  appears when try exit vim while buffers changed.  either have write changed buffer (with |:w|), or use command abandon buffer forcefully, e.g., ":qa!".  careful, make sure don't throw away changes want keep.  might have forgotten buffer, when 'hidden' set.     [no write since last change]  appears when executing shell command while @ least 1 buffer changed.  avoid message reset 'warn' option. 

Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -