Make vim use XDG basedir
This commit is contained in:
parent
26811f58ef
commit
2b618fcb47
4 changed files with 16 additions and 4 deletions
|
@ -18,10 +18,7 @@ if which gpg >/dev/null 2>&1 || which gpg2 >/dev/null 2>&1; then
|
||||||
link_file gpg.conf .gnupg/gpg.conf ../
|
link_file gpg.conf .gnupg/gpg.conf ../
|
||||||
fi
|
fi
|
||||||
which tmux >/dev/null 2>&1 && link_file tmux.conf .tmux.conf
|
which tmux >/dev/null 2>&1 && link_file tmux.conf .tmux.conf
|
||||||
if which vim >/dev/null 2>&1; then
|
which vim >/dev/null 2>&1 && link_file vim .config/vim ../
|
||||||
link_file vim .vim
|
|
||||||
link_file vimrc .vimrc
|
|
||||||
fi
|
|
||||||
which fish >/dev/null 2>&1 && link_file fish .config/fish ../
|
which fish >/dev/null 2>&1 && link_file fish .config/fish ../
|
||||||
which youtube-dl >/dev/null 2>&1 && link_file youtube-dl .config/youtube-dl ../
|
which youtube-dl >/dev/null 2>&1 && link_file youtube-dl .config/youtube-dl ../
|
||||||
which zsh >/dev/null 2>&1 && link_file zshrc .zshrc
|
which zsh >/dev/null 2>&1 && link_file zshrc .zshrc
|
||||||
|
|
|
@ -24,5 +24,13 @@ set -g fish_color_vcs_braces 29bc7d
|
||||||
set -g _fish_abbr_gpg gpg2
|
set -g _fish_abbr_gpg gpg2
|
||||||
set -g _fish_abbr_vi vim
|
set -g _fish_abbr_vi vim
|
||||||
|
|
||||||
|
test -n "$XDG_CONFIG_HOME"
|
||||||
|
or set -x XDG_CONFIG_HOME $HOME/.config
|
||||||
|
test -n "$XDG_CACHE_HOME"
|
||||||
|
or set -x XDG_CACHE_HOME $HOME/.cache
|
||||||
|
test -n "$XDG_DATA_HOME"
|
||||||
|
or set -x XDG_DATA_HOME $HOME/.local/share
|
||||||
|
|
||||||
set -x EDITOR vim
|
set -x EDITOR vim
|
||||||
|
set -x VIMINIT "source $XDG_CONFIG_HOME/vim/vimrc"
|
||||||
set -x LS_COLORS 'di=34:ow=44;37:tw=44;37:st=44;37:ex=31:su=7;31:sg=7;31:ln=33:or=7;33:pi=32:do=32:bd=35:cd=35:so=32:*.bz2=36:*.dmg=36:*.gz=36:*.gpg=36:*.rar=36:*.tar=36:*.tbz2=36:*.tgz=36:*.xz=36:*.zip=36:*.orig=90:*~=90'
|
set -x LS_COLORS 'di=34:ow=44;37:tw=44;37:st=44;37:ex=31:su=7;31:sg=7;31:ln=33:or=7;33:pi=32:do=32:bd=35:cd=35:so=32:*.bz2=36:*.dmg=36:*.gz=36:*.gpg=36:*.rar=36:*.tar=36:*.tbz2=36:*.tgz=36:*.xz=36:*.zip=36:*.orig=90:*~=90'
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
set runtimepath+=$XDG_CONFIG_HOME/vim,$XDG_CONFIG_HOME/vim/after
|
||||||
|
set viminfofile=$XDG_CACHE_HOME/vim/viminfo
|
||||||
|
|
||||||
source $VIMRUNTIME/vimrc_example.vim
|
source $VIMRUNTIME/vimrc_example.vim
|
||||||
|
|
||||||
set t_Co=256
|
set t_Co=256
|
4
zshrc
4
zshrc
|
@ -1,4 +1,8 @@
|
||||||
|
export XDG_CONFIG_HOME="$HOME/.config"
|
||||||
|
export XDG_CACHE_HOME="$HOME/.cache"
|
||||||
|
export XDG_DATA_HOME="$HOME/.local/share"
|
||||||
export EDITOR="vim"
|
export EDITOR="vim"
|
||||||
|
export VIMINIT="source $XDG_CONFIG_HOME/vim/vimrc"
|
||||||
export PAGER="less"
|
export PAGER="less"
|
||||||
export LS_COLORS='di=34:ow=44;37:tw=44;37:st=44;37:ex=31:su=7;31:sg=7;31:ln=33:or=7;33:pi=32:do=32:bd=35:cd=35:so=32:*.bz2=36:*.dmg=36:*.gz=36:*.gpg=36:*.rar=36:*.tar=36:*.tbz2=36:*.tgz=36:*.xz=36:*.zip=36:*.orig=90:*~=90'
|
export LS_COLORS='di=34:ow=44;37:tw=44;37:st=44;37:ex=31:su=7;31:sg=7;31:ln=33:or=7;33:pi=32:do=32:bd=35:cd=35:so=32:*.bz2=36:*.dmg=36:*.gz=36:*.gpg=36:*.rar=36:*.tar=36:*.tbz2=36:*.tgz=36:*.xz=36:*.zip=36:*.orig=90:*~=90'
|
||||||
LISTMAX=32768
|
LISTMAX=32768
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue