1
0
mirror of https://github.com/bertptrs/vimconfig.git synced 2025-12-25 12:30:32 +01:00

Persistent undo and tabs in markdown.

This commit is contained in:
Bert Peters
2017-04-10 14:05:47 +02:00
parent eb7797b9cc
commit 2f41d2f5b1

View File

@@ -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.