]> git.zndr.dk Git - dotfiles.git/commitdiff
Move hist,swap,backup,undo files to .local/share/
authorJannik Zander <jannikz@gmail.com>
Wed, 25 May 2016 19:40:33 +0000 (21:40 +0200)
committerJannik Zander <jannikz@gmail.com>
Wed, 25 May 2016 19:40:33 +0000 (21:40 +0200)
.config/profile/rc/environ.sh
.vimrc

index fbd8d3560432ce88ef067cdf08f614c16a0002fb..5faf9db403e14efb9fcd34cf1081104cdd793a46 100644 (file)
@@ -8,6 +8,7 @@ export EDITOR=vim;
 export VISUAL=vim;
 export PAGER=less
 #export MYVIMRC="$HOME/.config/vim/vimrc"
+export TMPDIR=~/.cache/tmp
 
 # Larger bash history (allow 32³ entries; default is 500)
 export HISTSIZE=32768;
@@ -15,7 +16,7 @@ export HISTFILESIZE=$HISTSIZE;
 export HISTCONTROL=ignoreboth;
 # Make some commands not show up in history
 export HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help";
-export HISTFILE="$HOME/.cache/bash/history";
+export HISTFILE="$HOME/.local/share/bash/history";
 
 # Whenever displaying the prompt, write the previous line to disk
 export PROMPT_COMMAND="history -a";
@@ -37,8 +38,3 @@ export MANPAGER="less -X";
 # See http://www.gnu.org/software/src-highlite/source-highlight.html
 # export LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s"
 export LESS=-eFRX
-
-# Tell lynx where the color settings are that were adjusted for the
-# Solarized color scheme
-export LYNX_LSS=$HOME/.config/lynx.lss
-
diff --git a/.vimrc b/.vimrc
index a6727e9752c701b480b46f95dad260989cb637b0..2906b05dd79cfabb9d7ad116a7f17b2b9b50cdc1 100644 (file)
--- a/.vimrc
+++ b/.vimrc
@@ -2,18 +2,16 @@
 " ---------------------
 
 set nocompatible
-set runtimepath+=~/.config/vim
-set directory=~/.cache/vim/swap
-set backupdir=~/.cache/vim/backup
-set undodir=~/.cache/vim/undo
+set runtimepath+=~/.cache/vim
+set directory=~/.local/share/vim/swap
+set backupdir=~/.local/share/vim/backup
+set undodir=~/.local/share/vim/undo
 set viminfo+=n~/.local/share/vim/viminfo
 
-if empty(glob('~/.config/vim/autoload/plug.vim'))
+if empty(glob('~/.cache/vim/autoload/plug.vim'))
   cd ~
-  silent !mkdir -p .cache/vim/swap > /dev/null 2>&1
-  silent !mkdir -p .cache/vim/backup > /dev/null 2>&1
-  silent !mkdir -p .cache/vim/undo > /dev/null 2>&1
-  silent !curl -fLo .config/vim/autoload/plug.vim --create-dirs
+  silent !mkdir -p .local/share/vim/{swap,backup,undo} > /dev/null 2>&1
+  silent !curl -fLo .cache/vim/autoload/plug.vim --create-dirs
     \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
   autocmd VimEnter * PlugInstall | source $MYVIMRC
   cd -
@@ -22,7 +20,7 @@ endif
 " section: plugins {{{1
 " ---------------------
 
-call plug#begin('~/.config/vim/plugged')
+call plug#begin('~/.cache/vim/plugged')
 
 "Plug 'tpope/vim-sensible'
 "Plug 'tpope/vim-ragtag'