mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
vim: create missing directories on startup
This commit is contained in:
parent
73ecd1f584
commit
ae1acb194c
@ -1,12 +1,14 @@
|
|||||||
set nocompatible " be iMproved, required
|
set nocompatible " be iMproved, required
|
||||||
|
|
||||||
" Reconfigure Vim to be clean!
|
" Reconfigure Vim to be clean!
|
||||||
set undodir=$XDG_CACHE_HOME/vim/undo
|
set undodir=$XDG_CACHE_HOME/vim/undo//
|
||||||
set directory=$XDG_CACHE_HOME/vim/swap
|
set directory=$XDG_CACHE_HOME/vim/swap//
|
||||||
set backupdir=$XDG_CACHE_HOME/vim/backup
|
set backupdir=$XDG_CACHE_HOME/vim/backup//
|
||||||
set viminfo+='1000,n$XDG_CACHE_HOME/vim/viminfo
|
set viminfo+='1000,n$XDG_CACHE_HOME/vim/viminfo
|
||||||
set runtimepath+=$XDG_CONFIG_HOME/vim,$VIMRUNTIME,$XDG_CONFIG_HOME/vim/after
|
set runtimepath+=$XDG_CONFIG_HOME/vim,$VIMRUNTIME,$XDG_CONFIG_HOME/vim/after
|
||||||
|
|
||||||
|
silent !mkdir -p $XDG_CACHE_HOME/vim/swap $XDG_CACHE_HOME/vim/undo $XDG_CACHE_HOME/vim/backup
|
||||||
|
|
||||||
syntax enable
|
syntax enable
|
||||||
filetype plugin on
|
filetype plugin on
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user