HOKAY; XDG_* refactor

This commit is contained in:
2024-08-16 09:41:26 -06:00
parent 7b70567a67
commit 9301a32090
31 changed files with 332 additions and 130 deletions

View File

@ -1,12 +1,19 @@
if !isdirectory(expand("$HOME/.vim/bundle/Vundle.vim")) | let g:plugins_ok = 0 | finish | endif
if !empty(glob(expand("$HOME/.vim/bundle")))
let $VIM_PLUGIN_DIR=expand("$HOME/.vim/bundle")
elseif !empty(expand("$XDG_CONFIG_HOME"))
let $VIM_PLUGIN_DIR=expand("$XDG_CONFIG_HOME/vim/bundle")
else
let $VIM_PLUGIN_DIR=expand("$HOME/.config/vim/bundle")
endif
if !isdirectory(expand("$VIM_PLUGIN_DIR/Vundle.vim")) | let g:plugins_ok = 0 | finish | endif
" -------------------------------------------------------------------
set nocompatible
filetype off
set rtp+=$VIM_PLUGIN_DIR/Vundle.vim
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
call vundle#begin("$VIM_PLUGIN_DIR")
Plugin 'VundleVim/Vundle.vim' " 00.plugin-vundle.vim
Plugin 'valloric/youcompleteme' " 01.plugin-youcompleteme.vim
Plugin 'w0rp/ale' " 02.plugin-ale.vim

View File

@ -9,3 +9,5 @@ set showmatch matchtime=0
set backspace=indent,eol,start
set spellfile=$DOTWRYN/vim/en.utf-8.add spelllang=en
set viminfo+=n$XDG_CACHE_HOME/vim/viminfo

View File

@ -1,5 +1,11 @@
if empty($DOTWRYN)
let $DOTWRYN=expand("$HOME/.wryn")
if !empty(glob(expand("$HOME/.wryn")))
let $DOTWRYN=expand("$HOME/.wryn")
elseif !empty(glob(expand("$XDG_DATA_HOME/wryn")))
let $DOTWRYN=expand("$XDG_DATA_HOME/wryn")
else
let $DOTWRYN=expand("$HOME/.local/share/wryn")
endif
endif
let $VIMRC=expand("$DOTWRYN/vim/rc.vim")