mirror of
https://codeberg.org/andyscott/dotfiles.git
synced 2024-12-22 01:43:10 -05:00
Save swapfiles to ~/.cache
This commit is contained in:
parent
ea36bd8155
commit
1ce6bebd27
1 changed files with 3 additions and 0 deletions
|
@ -41,6 +41,9 @@ set timeoutlen=500 " By default timeoutlen is 1000 ms
|
||||||
set formatoptions-=cro " Stop newline continution of comments
|
set formatoptions-=cro " Stop newline continution of comments
|
||||||
"set clipboard=unnamedplus " Copy paste between vim and everything else
|
"set clipboard=unnamedplus " Copy paste between vim and everything else
|
||||||
set autochdir " Your working directory will always be the same as your working directory
|
set autochdir " Your working directory will always be the same as your working directory
|
||||||
|
set swapfile " Save swapfiles to ~/.cache instead of littering source dir
|
||||||
|
set dir=~/.cache/nvim
|
||||||
|
|
||||||
|
|
||||||
au! BufWritePost $MYVIMRC source % " auto source when writing to init.vim alternatively you can run :source $MYVIMRC
|
au! BufWritePost $MYVIMRC source % " auto source when writing to init.vim alternatively you can run :source $MYVIMRC
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue