mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-13 20:30:02 +00:00
lnl: temporary files
This commit is contained in:
parent
438c6fe241
commit
332500042b
1 changed files with 18 additions and 0 deletions
|
@ -71,6 +71,24 @@
|
|||
let mapleader = ' '
|
||||
nnoremap <Leader>p :FZF<CR>
|
||||
nnoremap <silent> <Leader>e :exe 'FZF ' . expand('%:h')<CR>
|
||||
|
||||
set backup
|
||||
set backupdir=~/.vim/tmp/backup//
|
||||
set backupskip=/tmp/*,/private/tmp/*
|
||||
set directory=~/.vim/tmp/swap/
|
||||
set noswapfile
|
||||
set undodir=~/.vim/tmp/undo//
|
||||
set undofile
|
||||
|
||||
if !isdirectory(expand(&undodir))
|
||||
call mkdir(expand(&undodir), "p")
|
||||
endif
|
||||
if !isdirectory(expand(&backupdir))
|
||||
call mkdir(expand(&backupdir), "p")
|
||||
endif
|
||||
if !isdirectory(expand(&directory))
|
||||
call mkdir(expand(&directory), "p")
|
||||
endif
|
||||
'';
|
||||
|
||||
programs.zsh.enable = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue