mirror of
https://github.com/bertptrs/vimconfig.git
synced 2025-12-25 20:40:32 +01:00
Persistent undo and tabs in markdown.
This commit is contained in:
@@ -33,12 +33,15 @@ let g:syntastic_cpp_compiler="g++"
|
|||||||
let g:syntastic_cpp_compiler_options = "-std=c++11 -Wall -Wextra -Wpedantic"
|
let g:syntastic_cpp_compiler_options = "-std=c++11 -Wall -Wextra -Wpedantic"
|
||||||
|
|
||||||
autocmd Filetype python setlocal expandtab
|
autocmd Filetype python setlocal expandtab
|
||||||
autocmd Filetype markdown setlocal textwidth=72
|
autocmd Filetype markdown setlocal textwidth=72 expandtab
|
||||||
|
|
||||||
" Remove trailing whitespace, always.
|
" Remove trailing whitespace, always.
|
||||||
autocmd BufWritePre * :%s/\s\+$//e
|
autocmd BufWritePre * :%s/\s\+$//e
|
||||||
|
|
||||||
" Keep backup files etc out of the way
|
" 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 undodir=~/.cache/vim/undo " vim will not create this directory.
|
||||||
set directory=~/.cache/vim/swap " 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.
|
set backupdir=~/.cache/vim/backup " vim will not create this directory.
|
||||||
|
|||||||
Reference in New Issue
Block a user