What is a .un ~ file or or why does Vim in a terminal make a .un ~ file?

I noticed that I have some dotfiles ending in .un~ , for example, I have .vividchalk.vim.un~ , but I'm not sure where it came from. It looks like they were created when I use Vim in Terminal. What kind of files are these? Can they be deleted when I close the file I’m editing?

+58
vim terminal dotfiles
Mar 27 '13 at 13:56 on
source share
1 answer

When you edit and save files, Vim creates a file with the same name as the source file and the extension "un ~" at the end. How to stop Vim from creating this file (or) How to disable the Vim undofile function?

Vim 7.3 contains permanent undo as a new function, that is, undo information will not be lost when you exit Vim and will be saved in a file that ends with .un You set the parameter "undofile", so Vim creates a cancellation file when you save the original file. You can stop Vim from creating a backup file by clearing the option:

 :set noundofile 

Please note that this option is disabled by default. You explicitly included the "undofile" parameter in one of the initialization files. if you want your chronicles to be saved only in a specific directory, you can specify the parameter "undodir" in a directory that will contain all your aggregated shortages.

Source: http://vimhelp.appspot.com/vim_faq.txt.html#faq-7.2

+75
Mar 27 '13 at 14:02
source share



All Articles