summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEkaitz Zárraga <ekaitz.zarraga@protonmail.com>2018-10-27 20:37:41 +0200
committerEkaitz Zárraga <ekaitz.zarraga@protonmail.com>2018-10-27 20:37:41 +0200
commit1714659580bdfc1837da0d873a28360746c85fa4 (patch)
tree1030bee95454175cc014f4ae2ffff668f0a9cead
parentbf9561f212e9c8b2a1e82d6873cb213c8ec865ea (diff)
Undoforever nvim
-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*$//