mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-11-10 02:39:40 +00:00
Update vimrc XDG paths (autocreation)
This commit is contained in:
parent
0a7f09dabe
commit
5a950ddfef
|
@ -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
Loading…
Reference in a new issue