aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2019-06-01 16:04:41 +0200
committerTeddy Wing2019-06-01 16:04:41 +0200
commite377fe0d40162faf1a823cabec28989f8c3e4fae (patch)
tree5c039d6b6b0f8838816cc9472f74354ae14b21ba
parent1de41326e06c291cbe4e2183cde818c829fc89cc (diff)
downloaddotvim-e377fe0d40162faf1a823cabec28989f8c3e4fae.tar.bz2
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.
-rw-r--r--vimrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 10ec759..f2c62ab 100644
--- a/vimrc
+++ b/vimrc
@@ -417,6 +417,7 @@
"
" 2019.06.01:
" * Add `<leader>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