mirror of
https://github.com/bertptrs/vimconfig.git
synced 2025-12-25 20:40:32 +01:00
Add some xdg-cache dirs to vim
This commit is contained in:
1
vim/.cache/vim/.gitignore
vendored
Normal file
1
vim/.cache/vim/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
*
|
||||||
0
vim/.cache/vim/backup/.gitkeep
Normal file
0
vim/.cache/vim/backup/.gitkeep
Normal file
0
vim/.cache/vim/swap/.gitkeep
Normal file
0
vim/.cache/vim/swap/.gitkeep
Normal file
0
vim/.cache/vim/undo/.gitkeep
Normal file
0
vim/.cache/vim/undo/.gitkeep
Normal file
@@ -37,3 +37,9 @@ autocmd Filetype markdown setlocal textwidth=72
|
|||||||
|
|
||||||
" 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
|
||||||
|
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.
|
||||||
|
set viminfo+=n~/.cache/vim/viminfo
|
||||||
|
|||||||
Reference in New Issue
Block a user