From 2f41d2f5b19f9cda30dd766aae0d455d4c1f0c41 Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Mon, 10 Apr 2017 14:05:47 +0200 Subject: [PATCH] Persistent undo and tabs in markdown. --- vim/.vim/vimrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vim/.vim/vimrc b/vim/.vim/vimrc index 01bcc8f..1cfdb0d 100644 --- a/vim/.vim/vimrc +++ b/vim/.vim/vimrc @@ -33,12 +33,15 @@ let g:syntastic_cpp_compiler="g++" let g:syntastic_cpp_compiler_options = "-std=c++11 -Wall -Wextra -Wpedantic" autocmd Filetype python setlocal expandtab -autocmd Filetype markdown setlocal textwidth=72 +autocmd Filetype markdown setlocal textwidth=72 expandtab " Remove trailing whitespace, always. autocmd BufWritePre * :%s/\s\+$//e " Keep backup files etc out of the way +set undofile +set undolevels=1000 +set undoreload=10000 set undodir=~/.cache/vim/undo " vim will not create this directory. set directory=~/.cache/vim/swap " vim will not create this directory. set backupdir=~/.cache/vim/backup " vim will not create this directory.