From 8f11aaaa8e51b8c5bbb04494c995c58b181d7b72 Mon Sep 17 00:00:00 2001 From: Cyryl Plotnicki-Chudyk Date: Mon, 16 Mar 2015 07:00:25 +0100 Subject: [PATCH] added persistent undo/redo to vim --- .gitignore | 1 + .vim/undo/.keep | 0 .vimrc | 6 +++++- 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .vim/undo/.keep diff --git a/.gitignore b/.gitignore index 09eda17c..d2907491 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ +.vim/undo/ .vim/.netrwhist diff --git a/.vim/undo/.keep b/.vim/undo/.keep new file mode 100644 index 00000000..e69de29b diff --git a/.vimrc b/.vimrc index 4cd7b053..f61ffaf6 100755 --- a/.vimrc +++ b/.vimrc @@ -1,5 +1,9 @@ -" file settings +" global settings +set nocompatible set noswapfile +set undofile +set undodir=$HOME/.vim/undo +" file settings set encoding=utf-8 " key mappings