summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nvim/nvim/init.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/nvim/nvim/init.vim b/nvim/nvim/init.vim
index 9d3977a..bde3e35 100644
--- a/nvim/nvim/init.vim
+++ b/nvim/nvim/init.vim
@@ -81,6 +81,9 @@ set backspace=indent,eol,start
" Change buffers without needing to save
set hidden
+" Maintain undo history between sessions
+set undofile
+
" Clear trailing spaces on <F2>
function TrimWhiteSpace()
%s/\s*$//