From e377fe0d40162faf1a823cabec28989f8c3e4fae Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 1 Jun 2019 16:04:41 +0200 Subject: vimrc: Turn on persistent undo On a couple of occasions I've thought it would be useful to have this, so let's activate it. --- vimrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 10ec759..f2c62ab 100644 --- a/vimrc +++ b/vimrc @@ -417,6 +417,7 @@ " " 2019.06.01: " * Add `tc` mapping to close current tab. +" * Turn on 'undofile' for persistent undo. " @@ -481,6 +482,9 @@ set undodir=~/.vim/backup/undo// " Preserve file attributes, like creation date set backupcopy=yes +" Turn on persistent undo +set undofile + " Disable all default ftplugins " http://vim.wikia.com/wiki/File_type_plugins#Disabling_default_ftplugins " http://stackoverflow.com/questions/11337129/setting-buffer-specific-variables-in-vim#comment14956146_11351393 -- cgit v1.2.3