From d0242e117f1efc7848da85ca90516fc48e39250b Mon Sep 17 00:00:00 2001 From: jeremyclement Date: Fri, 15 Nov 2013 16:08:30 +0100 Subject: [PATCH 1/2] test presence of persistent_undo module before use it. (prevent error msg for versions<703) --- vimrc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/vimrc b/vimrc index 489daa4..196cf7c 100644 --- a/vimrc +++ b/vimrc @@ -49,10 +49,11 @@ set nowb " ================ Persistent Undo ================== " Keep undo history across sessions, by storing in file. " Only works all the time. - -silent !mkdir ~/.vim/backups > /dev/null 2>&1 -set undodir=~/.vim/backups -set undofile +if has('persistent_undo') + silent !mkdir ~/.vim/backups > /dev/null 2>&1 + set undodir=~/.vim/backups + set undofile +endif " ================ Indentation ====================== From dab4deb3245293b1cc45030cef2bc0a1f7c02c4b Mon Sep 17 00:00:00 2001 From: jeremyclement Date: Fri, 15 Nov 2013 16:09:15 +0100 Subject: [PATCH 2/2] just a spelling mistake in comment --- git/gitconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git/gitconfig b/git/gitconfig index bae5e42..28943ac 100644 --- a/git/gitconfig +++ b/git/gitconfig @@ -1,4 +1,4 @@ -# set your user tokens as enivornment variables, such as ~/.secrets +# set your user tokens as environment variables, such as ~/.secrets # See the README for examples. [color] ui = true