Update vimrc XDG paths (autocreation)

This commit is contained in:
ItsDrike 2021-03-09 21:44:08 +01:00
parent 0a7f09dabe
commit 5a950ddfef
No known key found for this signature in database
GPG key ID: 252D306F545351FC
5 changed files with 16 additions and 1400 deletions

View file

@ -24,13 +24,6 @@ set laststatus=2 " Always show status line
set wildmode=longest,list,full " Enable autocompletion set wildmode=longest,list,full " Enable autocompletion
set splitbelow splitright " Split in more natural way set splitbelow splitright " Split in more natural way
" SET VIM Locations
set undodir=$XDG_DATA_HOME/vim/undo
set directory=$XDG_DATA_HOME/vim/swap
set backupdir=$XDG_DATA_HOME/vim/backup
set viminfo+='1000,n$XDG_DATA_HOME/vim/viminfo
set runtimepath=$XDG_CONFIG_HOME/vim,$VIMRUNTIME,$XDG_CONFIG_HOME/vim/after
"set nomodeline " Disable as a security precaution "set nomodeline " Disable as a security precaution
"set wildmenu " Enable wildmenu "set wildmenu " Enable wildmenu
"set conceallevel=0 " Disable concealing "set conceallevel=0 " Disable concealing
@ -55,6 +48,22 @@ set runtimepath=$XDG_CONFIG_HOME/vim,$VIMRUNTIME,$XDG_CONFIG_HOME/vim/after
"set listchars=tab:\|\ " Set tab lines "set listchars=tab:\|\ " Set tab lines
"set listchars=tab:\|\- " Set tab lines with - "set listchars=tab:\|\- " Set tab lines with -
" SET VIM Locations
set runtimepath^=$XDG_CONFIG_HOME/vim
set runtimepath+=$XDG_DATA_HOME/vim
set runtimepath+=$XDG_CONFIG_HOME/vim/after
set packpath^=$XDG_DATA_HOME/vim,$XDG_CONFGI_HOME/vim
set packpath+=$XDG_CONFIG_HOME/vim/after,$XDG_DATA_HOME/vim/after
let g:netrw_home = $XDG_DATA_HOME."/vim"
call mkdir($XDG_DATA_HOME."/vim/spell", 'p')
set viewdir=$XDG_DATA_HOME/vim/view | call mkdir(&viewdir, 'p')
set backupdir=$XDG_CACHE_HOME/vim/backup | call mkdir(&backupdir, 'p')
set directory=$XDG_CACHE_HOME/vim/swap | call mkdir(&directory, 'p')
set undodir=$XDG_CACHE_HOME/vim/undo | call mkdir(&undodir, 'p')
" Always use terminal background " Always use terminal background
autocmd ColorScheme * highlight! Normal ctermbg=NONE guibg=NONE autocmd ColorScheme * highlight! Normal ctermbg=NONE guibg=NONE

File diff suppressed because it is too large Load diff