commit 2163cf9289cb6d8e463ddbf19238853f0873b8f2 parent c133064805c2bc42d1bb263ae2cfdb62c550f8ec Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe> Date: Wed, 1 Nov 2023 22:00:53 -0500 Added support for windows Diffstat:
| M | vimrc | | | 14 | +++++++++++--- |
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/vimrc b/vimrc @@ -4,9 +4,17 @@ set noshowmode set backspace=start,eol set incsearch -set directory=~/.cache/vim/swap/ -set undofile -set undodir=~/.cache/vim/undo/ +if has('win32') + set pythonthreedll=$LOCALAPPDATA\Programs\Python\Python312\python312.dll + set directory=$TEMP\vim\swap\ + set undofile + set undodir=$TEMP\vim\undo\ +else + set directory=$XDG_CACHE_DIR/vim/swap/ + set undofile + set undodir=$XDG_CACHE_DIR/vim/undo/ +endif + filetype plugin indent on